I'm responsible for a couple of scripts at work, which have used a trap
on CHLD to do some naive parallelisation, starting a new child process
when an existing one ends.
However, when run under bash 4.3.30, all CHLD traps run at the same
time, so my script runs in chunks, rather than keeping a given amount of
processes running at all times. I've been told I can rewrite it using
wait -n instead, but I'm wondering if this is classified as a bug, or if
it's intended to be that way going forwards.
Here's a quick example of what happens (from shbot in #bash on freenode):