Article View: comp.unix.shell
Article #1072Re: bourne shell query
From: Dave Sill
Date: Wed, 05 Sep 1990 17:24
Date: Wed, 05 Sep 1990 17:24
14 lines
948 bytes
948 bytes
In article <SCOTT.90Sep5124415@tab29.larc.nasa.gov>, scott@tab29.larc.nasa.gov (Scott Yelich) writes:
>
>2) test "$1" = "$2" && echo "Yeas!" || echo "No-way!"
>
>4) eval ${1:+'echo "Yup!"'}
>
>I prefer 2 and 4....
I hope I never have to maintain any of your scripts.
--
Dave Sill (de5@ornl.gov) These are my opinions.
Martin Marietta Energy Systems
Workstation Support
Technical Details
Message-ID:
<1990Sep5.172417.24069@cs.utk.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!emory!utkcs2!de5References:
<26DC6447.15922@maccs.dcss.mcmaster.ca> <8446@orca.wv.tek.com> <SCOTT.90Sep5124415@tab29.larc.nasa.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!emory!utkcs2!de5 From: de5@de5.CTD.ORNL.GOV (Dave Sill) Newsgroups: comp.unix.shell Subject: Re: bourne shell query Message-ID: <1990Sep5.172417.24069@cs.utk.edu> Date: 5 Sep 90 17:24:17 GMT References: <26DC6447.15922@maccs.dcss.mcmaster.ca> <8446@orca.wv.tek.com> <SCOTT.90Sep5124415@tab29.larc.nasa.gov> Sender: news@cs.utk.edu (USENET News System) Reply-To: Dave Sill <de5@ornl.gov> Organization: Oak Ridge National Laboratory Lines: 14