Path: utzoo!utgpu!watserv1!watmath!att!linac!uwm.edu!cs.utexas.edu!execu!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.bugs.sys5 Subject: Re: small bug in who(1) of SVR3 Message-ID: <18896@rpp386.cactus.org> Date: 12 Jan 91 18:48:37 GMT References: <9101091725.AA15013@ucbvax.Berkeley.EDU> <1991Jan10.130738.10194@unhtel.uucp> <14818@smoke.brl.mil> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 27 X-Clever-Slogan: Recycle or Die. In article <14818@smoke.brl.mil> gwyn@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@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."