bourne shell query

Harald Fuchs fuchs at it.uka.de
Thu Sep 6 21:11:56 AEST 1990


scott at 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 at it.uka.de>



More information about the Comp.unix.shell mailing list