On Mon, Jul 08, 2024 at 22:45:35 +0200, alex xmb sw ratchev wrote: > On Mon, Jul 8, 2024, 22:15 Chet Ramey <chet.ra...@case.edu> wrote: > > > On 7/8/24 4:02 PM, alex xmb sw ratchev wrote: > > > > > hi , one question about .. > > > if a cmd contains more substitions like >( or <( , how to get all $! > > > maybe make ${![<cmdnum>]} , or is such already .. ? > > > > You can't. Process substitutions set $!, but you have to have a point > > where you can capture that if you want to wait for more than one. That's > > the whole purpose of this thread. > > > > so no ${![2]} or so ? > else i see only half complex start_first stuff > > anywa .. greets = ))
Bash has nothing like that, and as far as I know, nobody is planning to add it. If you need to capture all the PIDs of all your background processes, you'll have to launch them one at a time. This may mean using FIFOs (named pipes) instead of anonymous process substitutions, in some cases.