source:
MondoRescue/branches/3.3/mindi-busybox/shell/hush_test/hush-bugs/export_exp.tests.disabled
| Last change on this file was 2725, checked in by , 15 years ago | |
|---|---|
| File size: 425 bytes | |
| Line | |
|---|---|
| 1 | # This test shows a very special handling of export and local |
| 2 | # builtins by bash. |
| 3 | |
| 4 | v="a=aa0 b=bb0" |
| 5 | # only 1st arg should be expanded in multiple words |
| 6 | export $v c=$v |
| 7 | echo $a $b |
| 8 | echo $c |
| 9 | |
| 10 | # only 1st arg should be expanded in multiple words |
| 11 | export `echo a=aa1 b=bb1` c=`echo a=aa1 b=bb1` |
| 12 | echo $a $b |
| 13 | echo $c |
| 14 | |
| 15 | >zz=zz |
| 16 | >zzz=zzz |
| 17 | # only 1st arg should be globbed |
| 18 | export zzz* zz=* |
| 19 | env | grep ^zz | sort |
| 20 | rm -rf zz=zz zzz=zzz |
| 21 | |
| 22 | echo Done |
Note:
See TracBrowser
for help on using the repository browser.
