summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-misc/export-n.tests
blob: 5252a1e145c2c78e639c6a8612c9db1cad022891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export aaa1="'''"
export aaa2=""
export aaa3="'''abc"
export | grep aaa.=

export -n aaa1
unset aaa2; export -n aaa2="ghi"
export -n aaa3="klm"
export | grep aaa.=

export aaa4=4 aaa5=5
export -n aaa4=4n
export -n aaa5
export | grep aaa.=

export aaa5=5 aaa6=6 aaa7=7 aaa8=8
export -n aaa5 aaa6=6n aaa7
export | grep aaa.=

aaa9=9
export -n aaa9
set | grep ^aaa9=

export aaa10=10
export -n aaa10
set | grep ^aaa10=


export EXPORTED=qwe
export -nnnnnn nnnnnn; echo "Nothing:"; env | grep nnnnnn

export -n EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED

export EXPORTED=qwe
export -n EXPORTED; EXPORTED=123; echo "Nothing:"; env | grep ^EXPORTED

echo Done