blob: 132d387b49e79121f8d0b5a711fbb64e95e5d6ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|