[BusyBox] If Command

tom at ceisystems.com tom at ceisystems.com
Mon May 5 19:39:13 UTC 2003


Perhaps you missed it in my previous posting, as it is only a very
slight change.  Change your "==" to "=".  This is shellscript, not C
:-D

Thomas Cameron
CEI Systems, Inc.


> -----Original Message-----
> From: Jim Gifford [mailto:maillist at jg555.com] 
> Sent: Monday, May 05, 2003 3:29 PM
> To: Thomas Cameron; busybox at busybox.net
> Subject: Re: [BusyBox] If Command
> 
> 
> Nope. Still gives me the error mesage. The error message is.
> 
> [: ==: unknown operand
> 
> ----- Original Message ----- 
> From: <tom at ceisystems.com>
> To: <maillist at jg555.com>; <busybox at busybox.net>
> Sent: Monday, May 05, 2003 12:23 PM
> Subject: RE: [BusyBox] If Command
> 
> 
> Proper syntax:
> 
> if [ "$1" = "" ]; then
> echo "$0 (restore, backup)"
> exit 1
> fi
> 
> Outside of this advice, I (nor anyone else) can not help you.
> Perhaps you could attach the error you receive, and/or some 
> more detail
> WRT your busybox configuration.
> 
> Thanks,
> Thomas Cameron
> CEI Systems, Inc.
> 
> 
> > -----Original Message-----
> > From: Jim Gifford [mailto:maillist at jg555.com] 
> > Sent: Monday, May 05, 2003 3:10 PM
> > To: busybox at busybox.net
> > Subject: [BusyBox] If Command
> > 
> > 
> > I'm trying to figure out why this command doesn't work under 
> > busybox, advise
> > is welcomed.
> > 
> > if [ "$1" == "" ]
> >         then
> >             echo "$0 (restore,backup)"
> >             exit 1
> > fi
> > 
> > _______________________________________________
> > busybox mailing list
> > busybox at busybox.net
> > http://busybox.net/mailman/listinfo/busybox
> > 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/mailman/listinfo/busybox
> 
> 


More information about the busybox mailing list