The OS X
man page seems to be almost identical to the Linux one, at least at the beginning, wherein it mentions where the command takes input from. It states STDIN by default. However it doesn't mention needing
superuser for reading from file, unlike the Linux
Consequently, reading from a file seems to be default behaviour, and
wall on OS X simply looks for a file regardless of whether I've given given it a filename or an actual message, failing in the latter case.
As a stopgap I've been using a heredoc to send messages through
How do I make wall read from STDIN like it mentions in the manual?
Running OS X 10.10.3
EDIT: I'm not writing a script, I'm just typing in
wall hello world into a
zsh shell in Terminal on OS X. Same results with
EDIT 2: The response from the shell is actually
usage: wall [-g group] [file]
no such file or directory (if I surround the message with quotes)