+++ /dev/null
-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
--- /dev/null
+# 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
# With TERM we'll check whether it is reset
trap 'bad: caught TERM' TERM
-# using bash, because we don't have $PPID (yet)
-(trap; bash -c 'kill -HUP $PPID'; echo Ok)
-(trap; bash -c 'kill -QUIT $PPID'; echo Ok)
-(trap; bash -c 'kill -SYS $PPID'; echo Ok)
-(trap; bash -c 'kill -WINCH $PPID'; echo Ok)
-(trap; bash -c 'kill -TERM $PPID'; echo Bad: TERM is not reset)
+(trap; "$THIS_SH" -c 'kill -HUP $PPID'; echo Ok)
+(trap; "$THIS_SH" -c 'kill -QUIT $PPID'; echo Ok)
+(trap; "$THIS_SH" -c 'kill -SYS $PPID'; echo Ok)
+(trap; "$THIS_SH" -c 'kill -WINCH $PPID'; echo Ok)
+(trap; "$THIS_SH" -c 'kill -TERM $PPID'; echo Bad: TERM is not reset)
echo Done