diff options
-rw-r--r-- | shell/ash_test/ash-vars/var_leak.right | 2 | ||||
-rwxr-xr-x | shell/ash_test/ash-vars/var_leak.tests | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_leak.right b/shell/ash_test/ash-vars/var_leak.right new file mode 100644 index 000000000..45c5458dd --- /dev/null +++ b/shell/ash_test/ash-vars/var_leak.right | |||
@@ -0,0 +1,2 @@ | |||
1 | should be empty: '' | ||
2 | should be empty: '' | ||
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 000000000..1b1123fb7 --- /dev/null +++ b/shell/ash_test/ash-vars/var_leak.tests | |||
@@ -0,0 +1,9 @@ | |||
1 | # This currently fails with CONFIG_FEATURE_SH_NOFORK=y | ||
2 | VAR='' | ||
3 | VAR=qwe true | ||
4 | echo "should be empty: '$VAR'" | ||
5 | |||
6 | # This fails (always) | ||
7 | VAR='' | ||
8 | VAR=qwe exec 2>&1 | ||
9 | echo "should be empty: '$VAR'" | ||