Imported from ../bash-2.02.tar.gz.
This commit is contained in:
parent
e8ce775db8
commit
cce855bc5b
323 changed files with 33916 additions and 12321 deletions
17
tests/jobs1.sub
Normal file
17
tests/jobs1.sub
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# make sure that jobs -p, %+, and $! all agree
|
||||
set -m
|
||||
sleep 60 &
|
||||
|
||||
FN=/tmp/jobs-pid.$$
|
||||
|
||||
pid1=$!
|
||||
jobs -p %+ > $FN
|
||||
pid2=$(< $FN)
|
||||
rm $FN
|
||||
|
||||
if [ $pid1 -ne $pid2 ]; then
|
||||
echo 'oops - $! and jobs -p %+ disagree!'
|
||||
fi
|
||||
|
||||
exec 2>/dev/null
|
||||
kill -9 $pid1
|
||||
Loading…
Add table
Add a link
Reference in a new issue