blob: 582365ff5f36f4f2f819f60a6bac16e1bc6fff76 (
plain)
1
2
3
4
5
6
7
8
|
# make sure fg in a subshell doesn't try to start a parent's job
set -m
sleep 20 &
echo $(jobs)
echo $(fg %% ; jobs)
# suppress any message about sleep 20 being terminated
exec 2>/dev/null
kill %1
|