12 echo wait-for-background-pids
17 echo async list wait-for-background-pids
21 echo async list wait for child
25 echo wait-when-no-children
32 wait %2 # this should be a no-such-job error
36 echo async list wait-for-job
56 # these next two are error cases
59 fg %2 # this should be a no-such-job error
60 bg %1 # this should be a `bg background job?' error
63 # these may someday mean to start the jobs, but not print the line
64 # describing the status, but for now they are errors
71 # someday this may mean to disown all running jobs, but for now it is
78 echo wait-for-non-child
82 exit 1 | exit 2 | exit 3
83 echo $? -- ${PIPESTATUS[@]} -- ${PIPESTATUS[0]} - ${PIPESTATUS[1]} - ${PIPESTATUS[2]}
98 sleep 5 # give time for the shell to get the stop notification
115 echo after kill -s CONT
122 sleep 5 # give time for the shell to get the stop notification
123 echo after kill -STOP, backgrounding %3:
128 # make sure the killed processes don't cause a message
134 wait # make sure we reap the processes while stderr is still redirected
141 sleep 5 # give time for the shell to get the stop notification
142 echo after KILL -STOP, foregrounding %1