small bug in who(1) of SVR3

John F Haugh II jfh at rpp386.cactus.org
Sun Jan 13 05:48:37 AEST 1991


In article <14818 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>Of course the actual bug is that "who" has no business being designed
>this way.  If you want columnation, it is trivial (who|6, for example),
>as is a user count (who|wc).  Building such functionality into the
>"who" command is so much against UNIX design principles that I have to
>wonder who could have approved such features.

This makes the assumption that the initial design of "who" was perfect
in the first place.  It is clear (to me, at least) that an unadorned
"who" should tell you exactly what it does.  However, there are sufficient
reasons for more or less information to be given.  Why should I be forced
to 1) write a new command (ala "users") or 2) use pipes (ala "who | 
cut -d' ' -f1 | pr -6 -l1) to get the same results as "who -q"?

The real problem comes in when the information is presented in a form
that requires special processing to be useful, as does the output of
"who -q".  That last line serves little use when contrasted against
the purpose of the who command, which is "Lists who is on the system".

Perhaps Doug is right - perhaps one command should have one narrowly
defined purpose.  On the other hand, what is preventing "users" from
being a simple link to "who -q"?
-- 
John F. Haugh II                             UUCP: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 832-8832                           Domain: jfh at rpp386.cactus.org
"While you are here, your wives and girlfriends are dating handsome American
 movie and TV stars. Stars like Tom Selleck, Bruce Willis, and Bart Simpson."



More information about the Comp.bugs.sys5 mailing list