busybox/shell/ash_test/ash-vars/var_leaks.tests
Denys Vlasenko a62bc80571 ash testsuite: add most of hust tests which pass for ash
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-10-03 00:06:55 +02:00

15 lines
174 B
Plaintext
Executable File

# 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