diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-29 13:36:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-29 13:36:09 +0000 |
commit | 4554b721ad230cdb5308b9ee61c20729c2c34ae8 (patch) | |
tree | fc7e114b9d54e4d8090f106acb31d1f7fe3f2320 /shell/hush_test | |
parent | 45cb9f9581f514e1fc731d6d1146e0ee2333066a (diff) | |
download | busybox-w32-4554b721ad230cdb5308b9ee61c20729c2c34ae8.tar.gz busybox-w32-4554b721ad230cdb5308b9ee61c20729c2c34ae8.tar.bz2 busybox-w32-4554b721ad230cdb5308b9ee61c20729c2c34ae8.zip |
hush: small fix for repeated continue and fix for wrong loop depth count
after Ctrl-C; with testcase for first one
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-misc/continue1.right | 8 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/continue1.tests | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/continue1.right b/shell/hush_test/hush-misc/continue1.right new file mode 100644 index 000000000..c4a5565bc --- /dev/null +++ b/shell/hush_test/hush-misc/continue1.right | |||
@@ -0,0 +1,8 @@ | |||
1 | A:a | ||
2 | A:b | ||
3 | A:c | ||
4 | OK1 | ||
5 | A:a | ||
6 | A:b | ||
7 | A:c | ||
8 | OK2 | ||
diff --git a/shell/hush_test/hush-misc/continue1.tests b/shell/hush_test/hush-misc/continue1.tests new file mode 100755 index 000000000..72d356660 --- /dev/null +++ b/shell/hush_test/hush-misc/continue1.tests | |||
@@ -0,0 +1,4 @@ | |||
1 | for v in a b c; do echo A:$v; continue 666; done | ||
2 | echo OK1 | ||
3 | for v in a b c; do echo A:$v; continue 666; done | ||
4 | echo OK2 | ||