]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/jobs7.sub
bash-5.2 distribution sources and documentation
[thirdparty/bash.git] / tests / jobs7.sub
1 # make sure fg in a subshell doesn't try to start a parent's job
2 set -m
3 sleep 20 &
4 echo $(jobs)
5 echo $(fg %% ; jobs)
6 # suppress any message about sleep 20 being terminated
7 exec 2>/dev/null
8 kill %1