Denis Vlasenko | ad4bd05 | 2009-04-20 22:04:21 +0000 | [diff] [blame^] | 1 | export aaa1="'''" |
| 2 | export aaa2="" |
| 3 | export aaa3="'''abc" |
| 4 | export | grep aaa.= |
| 5 | |
| 6 | export -n aaa1 |
| 7 | unset aaa2; export -n aaa2="ghi" |
| 8 | export -n aaa3="klm" |
| 9 | export | grep aaa.= |
| 10 | |
| 11 | export aaa4=4 aaa5=5 |
| 12 | export -n aaa4=4n |
| 13 | export -n aaa5 |
| 14 | export | grep aaa.= |
| 15 | |
| 16 | export aaa5=5 aaa6=6 aaa7=7 aaa8=8 |
| 17 | export -n aaa5 aaa6=6n aaa7 |
| 18 | export | grep aaa.= |
| 19 | |
| 20 | aaa9=9 |
| 21 | export -n aaa9 |
| 22 | set | grep ^aaa9= |
| 23 | |
| 24 | export aaa10=10 |
| 25 | export -n aaa10 |
| 26 | set | grep ^aaa10= |
| 27 | |
| 28 | |
| 29 | export EXPORTED=qwe |
| 30 | export -nnnnnn nnnnnn; echo "Nothing:"; env | grep nnnnnn |
| 31 | |
| 32 | export -n EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED |
| 33 | |
| 34 | export EXPORTED=qwe |
| 35 | export -n EXPORTED; EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED |
| 36 | |
| 37 | echo Done |