2 ms·
I was confused - is "who mom hates" supposed to do something interesting? On my Mac it seems any two arguments are allowed as an alias for "am i", so long as t
by eesmith 6y ago
I was confused - is "who mom hates" supposed to do something interesting?
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-likes-a-real-linux-command 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.
- dredmorbius 6y agoAny two non-option arguments returns the user of the invoking tty. "who is awesome" or "who foo bar" achieves the same result.
- throwaway287391 6y agoI 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.