The Unix `Who` Command
gauthier.uk
The Unix `Who` Command
1–10 of 43 posts
Re: The Unix `Who` Command
#2Re: The Unix `Who` Command
#3On 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.
Re: The Unix `Who` Command
#4Re: The Unix `Who` Command
#5[0] https://github.com/coreutils/coreutils/blob/master/src/who.c
Re: The Unix `Who` Command
#6His "who" implementation is 73 lines (21 if you remove blank lines and comments). Compare that to 836 in GNU Coreutils[0]. [0] https://github.com/coreutils/coreutils/blob/master/src/who.c
it's not quite an apples to apples comparison as his rewrite doesn't handle any options or cleverness, but it's still a massive jump in LOC.
Re: The Unix `Who` Command
#7His "who" implementation is 73 lines (21 if you remove blank lines and comments). Compare that to 836 in GNU Coreutils[0]. [0] https://github.com/coreutils/coreutils/blob/master/src/who.c
http://cvsweb.openbsd.org/src/usr.bin/who/who.c?rev=1.29&con...
this version appears to derive from rewriting unix who in the 4.4BSD era to replace AT&T code (copyright 1989 / no AT&T in header notes as basis for assumption)
Re: The Unix `Who` Command
#8His "who" implementation is 73 lines (21 if you remove blank lines and comments). Compare that to 836 in GNU Coreutils[0]. [0] https://github.com/coreutils/coreutils/blob/master/src/who.c
> Of course, this only mocks the most basic features of the who command and doesn’t handle any option, like the famous `who am i` or `who mom hates`. it's not quite an apples to apples comparison as his rewrite doesn't handle any options or cleverness, but it's still a massive jump in LOC.
Re: The Unix `Who` Command
#9His "who" implementation is 73 lines (21 if you remove blank lines and comments). Compare that to 836 in GNU Coreutils[0]. [0] https://github.com/coreutils/coreutils/blob/master/src/who.c
> Of course, this only mocks the most basic features of the who command and doesn’t handle any option, like the famous `who am i` or `who mom hates`. it's not quite an apples to apples comparison as his rewrite doesn't handle any options or cleverness, but it's still a massive jump in LOC.
Re: The Unix `Who` Command
#10His "who" implementation is 73 lines (21 if you remove blank lines and comments). Compare that to 836 in GNU Coreutils[0]. [0] https://github.com/coreutils/coreutils/blob/master/src/who.c
openbsd 'who' is in the 300 range: http://cvsweb.openbsd.org/src/usr.bin/who/who.c?rev=1.29&con... this version appears to derive from rewriting unix who in the 4.4BSD era to replace AT&T code (copyright 1989 / no AT&T in header notes as basis for assumption)