Hi (again :-) ), Hush does complain about a syntax error in the following script: echo a | ( if true; then echo $(echo a); fi ) hush: syntax error: unterminated ) and both dash and bash do not complain about it. if this script is written in the following way it does not complain: echo a | ( if true; then echo `echo a`; fi ) thanks, Mikel Garai
Fix: --- busybox.8/shell/hush.c 2010-01-12 11:56:36.000000000 +0100 +++ busybox.9/shell/hush.c 2010-01-12 13:16:47.980233239 +0100 @@ -5986,7 +5986,7 @@ static int handle_dollar(o_string *as_st # if !BB_MMU if (as_string) { o_addstr(as_string, dest->data + pos); - o_addchr(as_string, '`'); + o_addchr(as_string, ')'); } # endif o_addchr(dest, SPECIAL_VAR_SYMBOL);
Wow! that's fast! I just tested it and it works. thank you very much, Mikel Garai
Fixed in 1.16.0