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-bugs/empty_for.right | 1 - shell/hush_test/hush-bugs/empty_for.tests | 3 --- shell/hush_test/hush-misc/empty_for.right | 1 + shell/hush_test/hush-misc/empty_for.tests | 3 +++ 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 shell/hush_test/hush-bugs/empty_for.right delete mode 100755 shell/hush_test/hush-bugs/empty_for.tests 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') diff --git a/shell/hush_test/hush-bugs/empty_for.right b/shell/hush_test/hush-bugs/empty_for.right deleted file mode 100644 index 290d39b7e..000000000 --- a/shell/hush_test/hush-bugs/empty_for.right +++ /dev/null @@ -1 +0,0 @@ -OK: 0 diff --git a/shell/hush_test/hush-bugs/empty_for.tests b/shell/hush_test/hush-bugs/empty_for.tests deleted file mode 100755 index 0cb52e849..000000000 --- a/shell/hush_test/hush-bugs/empty_for.tests +++ /dev/null @@ -1,3 +0,0 @@ -false -for a in; do echo "HELLO"; done -echo OK: $? 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