hush/shell/hush_test/hush-misc
Denys Vlasenko 00ae989ee5 hush: fix a corner case of empty "do \n done" structure
The structure is:

    while cmd; do
    done

bash doesn't accept it at all. We were accepting it but execution
was buggy.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-05-31 17:35:45 +02:00
..
and-or.right
and-or.tests
assignment1.right
assignment1.tests
assignment2.rigth
assignment2.tests
assignment3.right
assignment3.tests
assignment4.right
assignment4.tests
break1.right
break1.tests
break2.right
break2.tests
break3.right
break3.tests
break4.right
break4.tests
break5.right
break5.tests
builtin1.right
builtin1.tests
case1.right
case1.tests
colon.right
colon.tests
compound.right
compound.tests
continue1.right
continue1.tests
continue2.right
continue2.tests
continue3.right
continue3.tests
echo_write_error.right
echo_write_error.tests
empty_args.right
empty_args.tests
empty_for2.right
empty_for2.tests
empty_for.right
empty_for.tests
env_and_func.right
env_and_func.tests
exec.right
exec.tests
exit1.right
exit1.tests
export-n.right
export-n.tests
export.right
export.tests
for_with_bslashes.right
for_with_bslashes.tests
for_with_keywords.right
for_with_keywords.tests
func1.right
func1.tests
func2.right
func2.tests
func3.right
func3.tests
func4.right
func4.tests
func5.right
func5.tests
func_args1.right
func_args1.tests
func_local1.right
func_local1.tests
func_local2.right
func_local2.tests
heredoc1.right
heredoc1.tests
heredoc2.right
heredoc2.tests
heredoc3.right
heredoc3.tests
heredoc_backslash1.right
heredoc_backslash1.tests
heredoc_huge.right
heredoc_huge.tests
if_false_exitcode.right
if_false_exitcode.tests
nommu1.right
nommu1.tests
nommu2.right
nommu2.tests
opts1.right
opts1.tests
pid.right
pid.tests
pipefail.right
pipefail.tests
read.right
read.tests
redir1.right
redir1.tests
redir2.right
redir2.tests
redir3.right
redir3.tests
redir4.right
redir4.tests
redir5.right
redir5.tests
redir6.right
redir6.tests
return1.right
return1.tests
shift.right
shift.tests
sig_exitcode.right
sig_exitcode.tests
sigint1.right
sigint1.tests
source1.right
source1.tests
syntax_err_negate.right
syntax_err_negate.tests
syntax_err.right
syntax_err.tests
until1.right
until1.tests
while1.right
while1.tests
while2.right
while2.tests
while3.right
while3.tests
while_in_subshell.right
while_in_subshell.tests