nt9856x/BSP/busybox/shell/hush_test/hush-vars/var_preserved.tests
2023-03-28 15:07:53 +08:00

17 lines
186 B
Plaintext
Executable File

export a=b
# external program
a=c /bin/true
env | grep ^a=
# builtin
a=d true
env | grep ^a=
# exec with redirection only
# in bash, this leaks!
a=e exec 1>&1
env | grep ^a=
echo OK