[BusyBox] Hush testing...
Erik Andersen
andersen at lineo.com
Sat Apr 28 07:32:56 UTC 2001
On Fri Apr 27, 2001 at 07:52:09PM -0500, Richard A. Smith wrote:
> On Fri, 27 Apr 2001 09:05:40 -0700, Larry Doolittle wrote:
>
> > 1. discover more bugs
> > 2. tell me which of those bugs are most important to you
>
> I tried hush.. The pcmcia configure scripts use all kinds of shell
> stuff so they require a lot. Currently I have to use Vod's ash
> applet.
>
> Right off the bat the hush appears to choke on the [ ] construct.
>
> Fex. if [ -r ./shared ] ; then . ./shared; else . /etc/pcmcia/shared
> ; fi
>
> gives a
>
> sh: [: No such file or directory
> sh: usage: No such file or directory
This works for me...
/home/andersen/CVS/busybox $ ls -l sh.c
lrwxrwxrwx 1 andersen andersen 6 Apr 27 12:37 sh.c -> hush.c
/home/andersen/CVS/busybox $ if [ -f busybox.c ] ; then echo "got it" ; fi
got it
/home/andersen/CVS/busybox $ if [ ! -f busybox.c ] ; then echo "got it" ; fi
Keep in mind that '[' should simply a link to 'test' so make sure
you enable BB_TEST in Config.h
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list