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