hush: fix another case where empty "for" wasn't setting exitcode to 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1
shell/ash_test/ash-misc/empty_for1.right
Normal file
1
shell/ash_test/ash-misc/empty_for1.right
Normal file
@@ -0,0 +1 @@
|
||||
Zero:0
|
5
shell/ash_test/ash-misc/empty_for1.tests
Executable file
5
shell/ash_test/ash-misc/empty_for1.tests
Executable file
@@ -0,0 +1,5 @@
|
||||
false
|
||||
for v; do
|
||||
exit 2
|
||||
done
|
||||
echo Zero:$?
|
Reference in New Issue
Block a user