hush: add yet another bug to testsuite :(
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jun 2008 16:47:09 +0000 (16:47 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 8 Jun 2008 16:47:09 +0000 (16:47 -0000)
shell/hush_test/hush-bugs/tick2.right [new file with mode: 0644]
shell/hush_test/hush-bugs/tick2.tests [new file with mode: 0755]

diff --git a/shell/hush_test/hush-bugs/tick2.right b/shell/hush_test/hush-bugs/tick2.right
new file mode 100644 (file)
index 0000000..216c883
--- /dev/null
@@ -0,0 +1 @@
+BAZ
diff --git a/shell/hush_test/hush-bugs/tick2.tests b/shell/hush_test/hush-bugs/tick2.tests
new file mode 100755 (executable)
index 0000000..dc51805
--- /dev/null
@@ -0,0 +1,6 @@
+# Bag: backticks are executed even inside not-taken if
+if false; then
+    echo "FOO"
+    tmp=`echo BAR >&2`
+fi
+echo BAZ