On 6/6/19 4:50 PM, Chet Ramey wrote: > On 6/6/19 9:12 AM, Robert Elz wrote: > >> Whether bash works that way with processes created for process substitutions >> (which are a non-standard thing to do) I don't know however. > > The shell doesn't really have to remember them at all -- ksh93 doesn't, for > instance -- but bash remembers the last one, since it sets $!.
And I just checked, and, in bash-5.0, wait without arguments attempts to wait for the rest of the process substitutions after waiting for the last one. My bad, I thought I put that in after bash-5.0 was released, but it's there. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/