[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh script Q



Ariel Biener <ariel@fireball.tau.ac.il> writes:

> On 18 May 1999, Chmouel Boudjnah wrote:
> 
> 
> Which will result in the script fo fail if $PARAM is undefined.

Not quite:

$ echo $SHELL
/bin/bash
$ if [ "$foobar" != "something" ] ; then echo nothing; fi
nothing

$ ksh
$ if [ "$foobar" != "something" ] ; then echo nothing; fi
nothing
$ 


-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il