ash test suite

Denis Vlasenko vda.linux at googlemail.com
Sun Feb 25 00:54:22 UTC 2007


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.
--
vda



More information about the busybox mailing list