summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var_leaks.tests (plain)
blob: 27c8c65041f6cdc0cbe35aa1c5d622e04adc379b
1# external program
2a=b /bin/true
3env | grep ^a=
4
5# builtin
6a=b true
7env | grep ^a=
8
9# exec with redirection only
10# in bash, this leaks!
11a=b exec 1>&1
12env | grep ^a=
13
14echo OK
15