[BusyBox] If statements.. using ASH

Goetz Bock bock at blacknet.de
Tue May 21 08:57:02 UTC 2002


On Tue, May 21 '02 at 08:48, rich_wilson at agilent.com wrote:
> Try replacing [ ... ] with test.
>   if test $# -ge $CMDLINEPARAM
and add a ;

if [ $# -ge $CMDLINEPARAM ]; then
....
fi

but maybe that is only required when you don't have a newline (I'm using
above syntax with 0.60.3 on my initrd/linuxrc scripts)

Cu,
    Goetz.



More information about the busybox mailing list