repo.or.cz
/
bush.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
init version.
[bush.git]
/
tests
/
3.cli
/
jobs
/
jobs2.sub
blob
496519b01bb2c0d0b82201a3a23a5d380d814551
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