Path: 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: 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> Sender: news@ira.uka.de (USENET News System) Organization: University of Karlsruhe, FRG Lines: 10 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