1
0
Fork 0
bash/tests/jobs2.sub
Daniel Baumann fa1b3d3922
Adding upstream version 5.2.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 06:49:21 +02:00

13 lines
216 B
Text

# make sure fg and bg don't work on jobs started without job control,
# even if they are executed when job control is active
set +o monitor
sleep 30 &
pid=$!
set -m
fg %1
echo fg: $?
exec 2>/dev/null
kill -9 $pid