3
0

var_leaks.tests 174 B

1234567891011121314
  1. # external program
  2. a=b /bin/true
  3. env | grep ^a=
  4. # builtin
  5. a=b true
  6. env | grep ^a=
  7. # exec with redirection only
  8. # in bash, this leaks!
  9. a=b exec 1>&1
  10. env | grep ^a=
  11. echo OK