Newsgroups: comp.bugs.sys5 Path: utzoo!telly!eci386!woods From: woods@eci386.uucp (Greg A. Woods) Subject: Re: small bug in who(1) of SVR3 Message-ID: <1991Jan15.185915.18131@eci386.uucp> Reply-To: woods@eci386.UUCP (Greg A. Woods) Organization: Elegant Communications, Inc. References: <9101091725.AA15013@ucbvax.Berkeley.EDU> <1991Jan10.130738.10194@unhtel.uucp> <14818@smoke.brl.mil> <18896@rpp386.cactus.org> <1991Jan13.004843.18650@zoo.toronto.edu> <18899@rpp386.cactus.org> Date: Tue, 15 Jan 91 18:59:15 GMT In article <18899@rpp386.cactus.org> jfh@rpp386.cactus.org (John F Haugh II) writes: > In article <1991Jan13.004843.18650@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes: > >In article <18896@rpp386.cactus.org> jfh@rpp386.cactus.org (John F Haugh II) writes: > >>... Why should I be forced to... use pipes (ala "who | > >>cut -d' ' -f1 | pr -6 -l1) to get the same results as "who -q"? > > > >Because they are the simplest and cheapest way to get the desired results? > > How can you possibly say that? The amount of machine overhead in the > above case is several times greater than "who -q". In which sense is > it "the simplest and cheapest way"? To follow up on what Geoff already said, one should also note the cost of a C programmer far exceeds even the accumulated cost of the few seconds it takes every user to get the exact output he or she wants each time by typing a short script, and the extra milliseconds required to execute the script. BTW, the original script was somewhat simpler than the ugly SysV example given above. Besides, the user who learns to use tools will save ever so much more time in the future. Yes, lots of thought, or should I say experience, needs to go into defining the set of available tools and their options. One thing which makes me mad is the way vendors blindly grab the source from AT&T, compile it, and sell it. What ever happened to the feedback channel to AT&T? Why aren't the good things in Research UNIX getting out? Maybe this is why people blindly fall in love with BSD. However, don't, especially in this day and age, equate "simple and cheap" with "the least amount of memory and CPU". We have to have a reasonable balance, sure. -- Greg A. Woods woods@{eci386,gate,robohack,ontmoh,tmsoft}.UUCP ECI and UniForum Canada +1-416-443-1734 [h] +1-416-595-5425 [w] VE3TCP Toronto, Ontario CANADA Political speech and writing are largely the defense of the indefensible-ORWELL Brought to you by Super Global Mega Corp .com