aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-14 11:27:36 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-14 11:27:36 +0200
commit29f9b7268a820505c2d9386f3271b9365dcf7e23 (patch)
tree29048a9475c582cee3cbf1f4dde08629b5940466 /shell/hush_test
parenteafc558f94f75dc6132a374a15050e9d0c5c48f1 (diff)
downloadbusybox-29f9b7268a820505c2d9386f3271b9365dcf7e23.tar.gz
hush: fix misparsing of "... do eval a= ...". Closes 3721
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-misc/assignment4.right1
-rwxr-xr-xshell/hush_test/hush-misc/assignment4.tests3
2 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/assignment4.right b/shell/hush_test/hush-misc/assignment4.right
new file mode 100644
index 000000000..31c896f62
--- /dev/null
+++ b/shell/hush_test/hush-misc/assignment4.right
@@ -0,0 +1 @@
+Done:0
diff --git a/shell/hush_test/hush-misc/assignment4.tests b/shell/hush_test/hush-misc/assignment4.tests
new file mode 100755
index 000000000..6f46d0a33
--- /dev/null
+++ b/shell/hush_test/hush-misc/assignment4.tests
@@ -0,0 +1,3 @@
+# There was a bug where we misinterpreted assignments after 'do':
+for i in 1; do eval b=; done
+echo Done:$?