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