source:
trunk/essentials/app-shells/bash/tests/jobs2.sub
Last change on this file was 3228, checked in by , 18 years ago | |
---|---|
File size: 216 bytes |
Line | |
---|---|
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 |
Note:
See TracBrowser
for help on using the repository browser.