From 4554b721ad230cdb5308b9ee61c20729c2c34ae8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 29 Jul 2008 13:36:09 +0000 Subject: hush: small fix for repeated continue and fix for wrong loop depth count after Ctrl-C; with testcase for first one --- shell/hush_test/hush-misc/continue1.right | 8 ++++++++ shell/hush_test/hush-misc/continue1.tests | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 shell/hush_test/hush-misc/continue1.right create mode 100755 shell/hush_test/hush-misc/continue1.tests (limited to 'shell/hush_test/hush-misc') diff --git a/shell/hush_test/hush-misc/continue1.right b/shell/hush_test/hush-misc/continue1.right new file mode 100644 index 0000000..c4a5565 --- /dev/null +++ b/shell/hush_test/hush-misc/continue1.right @@ -0,0 +1,8 @@ +A:a +A:b +A:c +OK1 +A:a +A:b +A:c +OK2 diff --git a/shell/hush_test/hush-misc/continue1.tests b/shell/hush_test/hush-misc/continue1.tests new file mode 100755 index 0000000..72d3566 --- /dev/null +++ b/shell/hush_test/hush-misc/continue1.tests @@ -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 -- cgit v1.1