diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-17 12:09:21 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-17 12:09:21 +0000 |
commit | 6eaf8deddd3c2cd747b09fb038f9e56f18250714 (patch) | |
tree | 44cd58a2415de3951bd5d694a78139633f605fcf /shell/hush_test/hush-misc | |
parent | b6926109b70cd6989384ea6ac1dc9dd9f842efc4 (diff) | |
download | busybox-6eaf8deddd3c2cd747b09fb038f9e56f18250714.tar.gz |
hush: fix "for a in; do echo 'I should never run'; done" bug
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r-- | shell/hush_test/hush-misc/empty_for.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/empty_for.tests | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/empty_for.right b/shell/hush_test/hush-misc/empty_for.right new file mode 100644 index 000000000..290d39b7e --- /dev/null +++ b/shell/hush_test/hush-misc/empty_for.right @@ -0,0 +1 @@ +OK: 0 diff --git a/shell/hush_test/hush-misc/empty_for.tests b/shell/hush_test/hush-misc/empty_for.tests new file mode 100755 index 000000000..0cb52e849 --- /dev/null +++ b/shell/hush_test/hush-misc/empty_for.tests @@ -0,0 +1,3 @@ +false +for a in; do echo "HELLO"; done +echo OK: $? |