bourne shell query

Topher Eliot eliot at dg-rtp.dg.com
Fri Sep 7 00:08:44 AEST 1990


In article <SCOTT.90Sep5124415 at tab29.larc.nasa.gov>,
scott at tab29.larc.nasa.gov (Scott Yelich) writes:
|> 
|> Sometimes people program for the ART of it (Oh no! Did I say that?)
|> 
|> for instance, which do you prefer?  Which do you consider better
form?
...
|> 2) test "$1" = "$2" && echo "Yeas!" || echo "No-way!"
...
|> 4) eval ${1:+'echo "Yup!"'}
|> I prefer 2 and 4....

My wife and I have for a long time had an inside joke:  "I can't
understand
it.  It must be Art."  I never thought I'd apply it to a shell
script...
--
Topher Eliot
Data General Corporation                eliot at dg-rtp.dg.com
62 T. W. Alexander Drive               
{backbone}!mcnc!rti!dg-rtp!eliot
Research Triangle Park, NC 27709        (919) 248-6371
Obviously, I speak for myself, not for DG.



More information about the Comp.unix.shell mailing list