busybox/shell/hush_test/hush-misc/while3.tests
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

5 lines
77 B
Plaintext
Executable File

while false; do
# bash will require at least ":" here...
done
echo OK:$?