mirror of
https://github.com/sheumann/hush.git
synced 2024-08-30 06:29:50 +00:00
15 lines
174 B
Plaintext
15 lines
174 B
Plaintext
|
# 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
|