testcase for the last fix

This commit is contained in:
Denis Vlasenko 2008-10-13 08:54:42 +00:00
parent 22d10a0292
commit d29084dd7d
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,4 @@
a=a
a=a
a=a
OK

View 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