busybox/shell/hush_test/hush-vars/var_preserved.tests

17 lines
186 B
Plaintext
Raw Normal View History

export a=b
2008-10-13 14:24:42 +05:30
# external program
a=c /bin/true
2008-10-13 14:24:42 +05:30
env | grep ^a=
# builtin
a=d true
2008-10-13 14:24:42 +05:30
env | grep ^a=
# exec with redirection only
# in bash, this leaks!
a=e exec 1>&1
2008-10-13 14:24:42 +05:30
env | grep ^a=
echo OK