hush: small fix for repeated continue and fix for wrong loop depth count
after Ctrl-C; with testcase for first one
This commit is contained in:
8
shell/hush_test/hush-misc/continue1.right
Normal file
8
shell/hush_test/hush-misc/continue1.right
Normal file
@@ -0,0 +1,8 @@
|
||||
A:a
|
||||
A:b
|
||||
A:c
|
||||
OK1
|
||||
A:a
|
||||
A:b
|
||||
A:c
|
||||
OK2
|
4
shell/hush_test/hush-misc/continue1.tests
Executable file
4
shell/hush_test/hush-misc/continue1.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
for v in a b c; do echo A:$v; continue 666; done
|
||||
echo OK1
|
||||
for v in a b c; do echo A:$v; continue 666; done
|
||||
echo OK2
|
Reference in New Issue
Block a user