summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--[-rwxr-xr-x]shell/hush_test/hush-bugs/export_exp.tests.disabled (renamed from shell/hush_test/hush-bugs/export_exp.tests)3
-rwxr-xr-xshell/hush_test/hush-trap/subshell.tests11
2 files changed, 8 insertions, 6 deletions
diff --git a/shell/hush_test/hush-bugs/export_exp.tests b/shell/hush_test/hush-bugs/export_exp.tests.disabled
index 91f57aa..0913fd3 100755..100644
--- a/shell/hush_test/hush-bugs/export_exp.tests
+++ b/shell/hush_test/hush-bugs/export_exp.tests.disabled
@@ -1,3 +1,6 @@
+# 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
diff --git a/shell/hush_test/hush-trap/subshell.tests b/shell/hush_test/hush-trap/subshell.tests
index 045294b..d877f2b 100755
--- a/shell/hush_test/hush-trap/subshell.tests
+++ b/shell/hush_test/hush-trap/subshell.tests
@@ -11,10 +11,9 @@ trap 'bad: caught WINCH' WINCH
# 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