source:
MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-vars/var_leaks.tests@
3735
Last change on this file since 3735 was 3320, checked in by , 10 years ago | |
---|---|
|
|
File size: 174 bytes |
Rev | Line | |
---|---|---|
[3320] | 1 | # external program |
2 | a=b /bin/true | |
3 | env | grep ^a= | |
4 | ||
5 | # builtin | |
6 | a=b true | |
7 | env | grep ^a= | |
8 | ||
9 | # exec with redirection only | |
10 | # in bash, this leaks! | |
11 | a=b exec 1>&1 | |
12 | env | grep ^a= | |
13 | ||
14 | echo OK |
Note:
See TracBrowser
for help on using the repository browser.