blob: 496519b01bb2c0d0b82201a3a23a5d380d814551 [file] [log] [blame]
# 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