Ariel Biener wrote: > Which will result in the script fo fail if $PARAM is undefined. > > Vadim's suggestion wasn't just a matter of semantics. > > --Ariel > > Vadim Vygonets <[EMAIL PROTECTED]> writes: > > > > > > [ "$PARAM" != "SOMETHING" ] || { > > > > ;} > > > I think that it's better to do: > > > if [ "X$PARAM" != "XSOMETHING" ]; then ..... > > > > Yes you right it's more unix, but i usually use the "$PARAM" != > > "SOME". Hmm. $ test "$FROB" != "" || echo "frob!" frob! $ Hrmph.
- Re: sh script Q Vadim Vygonets
- Re: sh script Q Chmouel Boudjnah
- Re: sh script Q Ariel Biener
- Re: sh script Q Alexander L. Belikoff
- Re: sh script Q Vadim Vygonets
- Re: sh script Q Gaal Yahas
- Re: sh script Q Vadim Smelyansky
- Re: sh script Q Oleg Goldshmidt
- Re: sh script Q Vadim Vygonets
- Re: sh script Q Vadim Vygonets
- Re: sh script Q Adam Morrison
- Re: sh script Q Ariel Biener
- Re: sh script Q Adam Morrison