]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/jobs2.sub
Bash-4.2 direxpand with patch 21
[thirdparty/bash.git] / tests / jobs2.sub
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
3 set +o monitor
4
5 sleep 30 &
6 pid=$!
7
8 set -m
9 fg %1
10 echo fg: $?
11
12 exec 2>/dev/null
13 kill -9 $pid