rcS shell?

Vladimir N. Oleynik dzo at simtreas.ru
Sun Dec 11 10:58:12 UTC 2005


Mike,

>>PLATFORM =`customscript -p`

> the space after the var name is illegal
> PLATFORM=`customscript -p`

>>if [ $PLATFORM = "myplat"] ; then

> everyone else already pointed out the space you're missing here

> however, you should also quote $PLATFORM because if it contains spaces,
> it will trigger errors too
> if [ "$PLATFORM" = "myplat" ] ; then

Full paranoid:

if [ "x$PLATFORM" = "xmyplat" ] ; then

for protect empty variable or bigining with minus.


--w
vodz



More information about the busybox mailing list