blob: 0094c3bd958a2616b0382b09417ff06d4c434a8b (
plain)
1
2
3
|
# `jobs` reaps finished jobs and clears their announce flag, so it must not run
# in-process for a command substitution: the shell would lose the job.
"$TSH" -c 'sh -c "exit 3" & sleep 0.3; x=$(jobs); jobs' 2>&1 | grep -c Done
|