Bourne Shell bug? Have a look..

Paolo Ventafridda venta at otello.sublink.org
Wed Jan 16 05:06:13 AEST 1991


Please have a look at this small program written in standard
Bourne shell:

:
set "one two three 4"
if [ "`echo $@ | grep '4'" != "" ]; then 
	echo "Four"
fi


Now, notice that a      `    is missing in the "if" above!
It works without any problems all the same: on Xenix, SCO Unix,
3B2, HP-UX and i guess on any bourne shell whose sources are
coming from at&t.
It seems that only BASH gets the error.

Ciao, Paolo
-- 
Paolo Ventafridda     -*-     INTERNET: venta at otello.sublink.org
TELEMATIX MILANO - Via C.Gomes 10, 20124 Milano -  +39-2-6706012



More information about the Comp.unix.shell mailing list