mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
testcase for the last fix
This commit is contained in:
parent
22d10a0292
commit
d29084dd7d
4
shell/hush_test/hush-vars/var_preserved.right
Normal file
4
shell/hush_test/hush-vars/var_preserved.right
Normal file
@ -0,0 +1,4 @@
|
||||
a=a
|
||||
a=a
|
||||
a=a
|
||||
OK
|
16
shell/hush_test/hush-vars/var_preserved.tests
Executable file
16
shell/hush_test/hush-vars/var_preserved.tests
Executable file
@ -0,0 +1,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
|
Loading…
Reference in New Issue
Block a user