On Thu, Jul 18, 2024 at 5:02 PM Chet Ramey <chet.ra...@case.edu> wrote: > > It's not in the set of changes to `wait -n' I just pushed, but it will be > in the next push.
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: msys Compiler: gcc Compilation CFLAGS: -g -O2 uname output: MSYS_NT-10.0-19045 Zack2021HPPavilion 3.5.3-d8b21b8c.x86_64 2024-07-09 18:03 UTC x86_64 Msys Machine Type: x86_64-pc-msys Bash Version: 5.3 Patch Level: 0 Release Status: alpha Description: I was going to say, it looks like 'wait -n' just couldn't wait for procsubs at all. Repeat-By: ./procsub-wait-n false false ./procsub-wait-n true false ./procsub-wait-n false true ./procsub-wait-n true true I haven't figured out how to build the devel branch in MSYS2 MSYS. Judging by your commit message: > job control cleanups; wait -n can return terminated jobs if supplied pid > arguments; wait -n can wait for process substitutions if supplied pid > arguments I feel like that's most of the way there. I would argue 'wait -n' without arguments should include the "last-executed process substitution, if its process id is the same as $!," in the set of running child processes it'll wait for, at least. Just for the sake of consistency with 'wait' without arguments.
procsub-wait-n
Description: Binary data