projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bash-4.3 distribution sources and documentation
[platform/upstream/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