diff options
author | Denis Vlasenko | 2008-10-13 08:54:42 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-10-13 08:54:42 +0000 |
commit | d29084dd7d23cb0efe0732b22aa669adcc5eaa0e (patch) | |
tree | 2cdc8b5a964e9bf0bbb73f7d219328780191dd11 /shell/hush_test/hush-vars/var_preserved.tests | |
parent | 22d10a029283b93c31890366a1f8dcfc59e6298c (diff) | |
download | busybox-d29084dd7d23cb0efe0732b22aa669adcc5eaa0e.zip busybox-d29084dd7d23cb0efe0732b22aa669adcc5eaa0e.tar.gz |
testcase for the last fix
Diffstat (limited to 'shell/hush_test/hush-vars/var_preserved.tests')
-rwxr-xr-x | shell/hush_test/hush-vars/var_preserved.tests | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_preserved.tests b/shell/hush_test/hush-vars/var_preserved.tests new file mode 100755 index 0000000..132d387 --- /dev/null +++ b/shell/hush_test/hush-vars/var_preserved.tests @@ -0,0 +1,16 @@ +export a=a + +# external program +a=b /bin/true +env | grep ^a= + +# builtin +a=b true +env | grep ^a= + +# exec with redirection only +# in bash, this leaks! +a=b exec 1>&1 +env | grep ^a= + +echo OK |