>
> I was a pretty big part of that discussion, and this looks broken to
> me. If 'wait -n' is passed a list of pids, it shouldn't also be
> waiting for other background processes that weren't passed to it as
> arguments. Is that what you're saying it's doing?
>

I have more than 100 posix-mode scripts that require the functionality (in
words) "for 'PIDS' an array of background process IDs, please wait for at
least one process to finish".

Prior to bash 5.3, this functionality was provided (even in posix mode) by
'wait -n "${PIDS[@]}";'' ...  this bash idiom worked GREAT.

Now, in bash 5.3, this 'wait -n' functionality still works fine ... EXCEPT
in posix-mode.  Huh?

So, what's the bash 5.3 replacement for the prior posix-mode "wait -n"
functionality?

Hopefully a replacement with comparable simplicity and programmatic
naturality?

At a minimum, can't "help wait" and "man bash" be amended to clarify these
issues?

Reply via email to