hush: fix misparsing of "... do eval a= ...". Closes 3721
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1
shell/hush_test/hush-misc/assignment4.right
Normal file
1
shell/hush_test/hush-misc/assignment4.right
Normal file
@@ -0,0 +1 @@
|
||||
Done:0
|
||||
3
shell/hush_test/hush-misc/assignment4.tests
Executable file
3
shell/hush_test/hush-misc/assignment4.tests
Executable file
@@ -0,0 +1,3 @@
|
||||
# There was a bug where we misinterpreted assignments after 'do':
|
||||
for i in 1; do eval b=; done
|
||||
echo Done:$?
|
||||
Reference in New Issue
Block a user