blob: 496519b01bb2c0d0b82201a3a23a5d380d814551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# 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
|