summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-bugs
diff options
context:
space:
mode:
authorDenis Vlasenko2009-04-20 10:52:31 +0000
committerDenis Vlasenko2009-04-20 10:52:31 +0000
commitd40fa397e45b35b62d1967a88036e06b4c061abe (patch)
treed9732c1ed8a24fa60da11e2ef960b598cf43bca8 /shell/hush_test/hush-bugs
parente41fdbc2795e098887af2c5bff3294753b97ffb5 (diff)
downloadbusybox-d40fa397e45b35b62d1967a88036e06b4c061abe.zip
busybox-d40fa397e45b35b62d1967a88036e06b4c061abe.tar.gz
hush: add two testcases
Diffstat (limited to 'shell/hush_test/hush-bugs')
-rw-r--r--shell/hush_test/hush-bugs/env_and_func.right2
-rwxr-xr-xshell/hush_test/hush-bugs/env_and_func.tests6
2 files changed, 8 insertions, 0 deletions
diff --git a/shell/hush_test/hush-bugs/env_and_func.right b/shell/hush_test/hush-bugs/env_and_func.right
new file mode 100644
index 0000000..4a15450
--- /dev/null
+++ b/shell/hush_test/hush-bugs/env_and_func.right
@@ -0,0 +1,2 @@
+var=val
+var=old
diff --git a/shell/hush_test/hush-bugs/env_and_func.tests b/shell/hush_test/hush-bugs/env_and_func.tests
new file mode 100755
index 0000000..d62c1af
--- /dev/null
+++ b/shell/hush_test/hush-bugs/env_and_func.tests
@@ -0,0 +1,6 @@
+# UNFIXED BUG
+
+var=old
+f() { echo "var=$var"; }
+var=val f
+echo "var=$var"