🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1076

Re: bourne shell query

#1076
From: Harald Fuchs
Date: Thu, 06 Sep 1990 11:11
10 lines
795 bytes
scott@tab29.larc.nasa.gov (Scott Yelich) writes:
>2) test "$1" = "$2" && echo "Yeas!" || echo "No-way!"

>I prefer 2 and 4....

I don't. The third command is executed if the second fails, which is
surely not what I want.
--

Harald Fuchs <fuchs@it.uka.de>
Technical Details
Message-ID: <fuchs.652619516@tmipm0>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!snorkelwacker!ira.uka.de!fuchs
References: <26DC6447.15922@maccs.dcss.mcmaster.ca> <8446@orca.wv.tek.com> <75@iconsys> <925@hls0.hls.oz> <SCOTT.90Sep5124415@tab29.larc.nasa.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!snorkelwacker!ira.uka.de!fuchs
From: fuchs@it.uka.de (Harald Fuchs)
Newsgroups: comp.unix.shell
Subject: Re: bourne shell query
Message-ID: <fuchs.652619516@tmipm0>
Date: 6 Sep 90 11:11:56 GMT
References: <26DC6447.15922@maccs.dcss.mcmaster.ca> <8446@orca.wv.tek.com>  <75@iconsys> <925@hls0.hls.oz> <SCOTT.90Sep5124415@tab29.larc.nasa.gov>
Sender: news@ira.uka.de (USENET News System)
Organization: University of Karlsruhe, FRG
Lines: 10