]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/jobs.tests
Bash-4.2 direxpand with patch 21
[thirdparty/bash.git] / tests / jobs.tests
index 5866b0c37a9f1b0cb055bce6fb50dc0bffcc98c4..e2acba5b7f2cf123464a84c185b52bf53e36e6a8 100644 (file)
@@ -115,6 +115,7 @@ exit 1 | exit 2 | exit 3
 echo $? -- ${PIPESTATUS[@]} -- ${PIPESTATUS[0]} - ${PIPESTATUS[1]} - ${PIPESTATUS[2]}
 
 sleep 300 &
+sleep300pid=$!
 sleep 350 &
 sleep 400 &
 
@@ -168,6 +169,7 @@ exec 5>&2
 exec 2>/dev/null
 
 echo killing...
+kill -n 9 $sleep300pid
 kill -n 9 %2 %3
 wait   # make sure we reap the processes while stderr is still redirected
 echo done