summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var_leak.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash_test/ash-vars/var_leak.tests')
-rwxr-xr-xshell/ash_test/ash-vars/var_leak.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_leak.tests b/shell/ash_test/ash-vars/var_leak.tests
new file mode 100755
index 0000000..1b1123f
--- /dev/null
+++ b/shell/ash_test/ash-vars/var_leak.tests
@@ -0,0 +1,9 @@
+# This currently fails with CONFIG_FEATURE_SH_NOFORK=y
+VAR=''
+VAR=qwe true
+echo "should be empty: '$VAR'"
+
+# This fails (always)
+VAR=''
+VAR=qwe exec 2>&1
+echo "should be empty: '$VAR'"