testcase for the last fix
No binary (build failed)
—
(log yok)
| @@ -0,0 +1,4 @@ | |
| + | a=a |
| + | a=a |
| + | a=a |
| + | OK |
| @@ -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 |