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

Re: sh script Q



Quoth Chmouel Boudjnah on Tue, May 18, 1999:
> [ "$PARAM" != "SOMETHING" ] || {
> ;}

I think that it's better to do:
if [ "X$PARAM" != "XSOMETHING" ]; then .....

Or, if you check for an enpty string,
if [ "X$PARAM" != "X" ]; then .....

Vadik.

-- 
The ill-formed Orange
Fails to satisfy the eye:
Segmentation fault.