hush: fix NOMMU bug (analogous to preceding commit for MMU)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
a=a
|
||||
a=a
|
||||
a=a
|
||||
a=b
|
||||
a=b
|
||||
a=b
|
||||
OK
|
||||
|
@ -1,16 +1,16 @@
|
||||
export a=a
|
||||
export a=b
|
||||
|
||||
# external program
|
||||
a=b /bin/true
|
||||
a=c /bin/true
|
||||
env | grep ^a=
|
||||
|
||||
# builtin
|
||||
a=b true
|
||||
a=d true
|
||||
env | grep ^a=
|
||||
|
||||
# exec with redirection only
|
||||
# in bash, this leaks!
|
||||
a=b exec 1>&1
|
||||
a=e exec 1>&1
|
||||
env | grep ^a=
|
||||
|
||||
echo OK
|
||||
|
Reference in New Issue
Block a user