summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-bugs/export_exp.tests.disabled
blob: 0913fd3f249ee4a30629fedfc4e78199b2d63bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This test shows a very special handling of export and local
# builtins by bash.

v="a=aa0 b=bb0"
# only 1st arg should be expanded in multiple words
export $v c=$v
echo $a $b
echo $c

# only 1st arg should be expanded in multiple words
export `echo a=aa1 b=bb1` c=`echo a=aa1 b=bb1`
echo $a $b
echo $c

>zz=zz
>zzz=zzz
# only 1st arg should be globbed
export zzz* zz=*
env | grep ^zz | sort
rm -rf zz=zz zzz=zzz

echo Done