Re:The Unix `Who` Command
by dredmorbius on Thursday September 03, 2020 @10:18AM
(#24364293)
Any two non-option arguments returns the user of the invoking tty. "who is awesome" or "who foo bar" achieves the same result.
Re:The Unix `Who` Command
by throwaway287391 on Thursday September 03, 2020 @11:03AM
(#24364704)
I was confused because when I'm in tmux `who am i` (or `who mom hates` or `who -m`) prints nothing. I thought that might've been the joke -- I'm nobody (or something). When I detach from tmux and run it in the login shell directly it works as expected. The phrasing in the man page ("'am i' or 'mom likes' are usual.") is also pretty strange.
On my Mac it seems any two arguments are allowed as an alias for "am i", so long as the first doesn't start with "-".
Looking it up, https://unix.stackexchange.com/questions/108145/is-who-mom-l... suggests it's a well-known in-joke.
FWIW, on my FreeBSD machine, only "who am i"/"who am I" are allowed.