From 6eaf8deddd3c2cd747b09fb038f9e56f18250714 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 17 Jun 2008 12:09:21 +0000 Subject: hush: fix "for a in; do echo 'I should never run'; done" bug --- shell/hush_test/hush-misc/empty_for.right | 1 + shell/hush_test/hush-misc/empty_for.tests | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 shell/hush_test/hush-misc/empty_for.right create mode 100755 shell/hush_test/hush-misc/empty_for.tests (limited to 'shell/hush_test/hush-misc') diff --git a/shell/hush_test/hush-misc/empty_for.right b/shell/hush_test/hush-misc/empty_for.right new file mode 100644 index 000000000..290d39b7e --- /dev/null +++ b/shell/hush_test/hush-misc/empty_for.right @@ -0,0 +1 @@ +OK: 0 diff --git a/shell/hush_test/hush-misc/empty_for.tests b/shell/hush_test/hush-misc/empty_for.tests new file mode 100755 index 000000000..0cb52e849 --- /dev/null +++ b/shell/hush_test/hush-misc/empty_for.tests @@ -0,0 +1,3 @@ +false +for a in; do echo "HELLO"; done +echo OK: $? -- cgit v1.2.3