hush: fixes to testsuite
[oweals/busybox.git] / shell / hush_test / hush-trap / subshell.tests
index 4564c2ee2e0d23c33654ba2ea7b940b5080cbcd5..d877f2b82e858e50fbc29380bcecd9a28171a783 100755 (executable)
@@ -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)
-(bash -c 'kill -HUP   $PPID'; echo Ok)
-(bash -c 'kill -QUIT  $PPID'; echo Ok)
-(bash -c 'kill -SYS   $PPID'; echo Ok)
-(bash -c 'kill -WINCH $PPID'; echo Ok)
-(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