ash test suite
Natanael Copa
natanael.copa at gmail.com
Sun Feb 25 13:42:51 UTC 2007
On Sun, 25 Feb 2007 01:54:22 +0100
Denis Vlasenko <vda.linux at googlemail.com> wrote:
> On Sunday 25 February 2007 01:51, Natanael Copa wrote:
> > On Sat, 24 Feb 2007 13:31:34 +0100
> > Denis Vlasenko <vda.linux at googlemail.com> wrote:
> > > Can you send me the testsuite?
> > >
> > > If it is not polished, send it as-is anyway.
> >
> > yes. would be nice to have it in svn. I know some things to test that i
> > know will fail. For example:
> >
> > function foo() {
> > }
> >
> > [ "yes" || "" ] && echo hello
> >
> > [[ "yes" && "yes" ]] && echo hello
> >
> > I dont care so much about "function", but I could probalby reduce
> > my bash->ash patches with 50% if test could do [ ... && ... ]
>
> bash-3.2# [ "yes" || "" ] && echo hello
> bash: [: missing `]'
> bash: : command not found
>
> I suspect a bug in the example.
Yes it was a bug. Sorry.
[[ "yes" || "" ]] echo hello
Natanael Copa
More information about the busybox
mailing list