On Mon, Aug 5, 2024 at 5:10 PM Chet Ramey <chet.ra...@case.edu> wrote:
>
> But in the end, if you're waiting for a process that isn't going to
> terminate, you're going to be waiting for a long time.

So, even with wait without id arguments restricted to the final
procsub, if its process id is the same as $!, it's still trivial to
create a scenario where the call to wait will hang. Given that, I
don't see the benefit over simply waiting for all process
substitutions.

> So in your example, the redirection sets $! (or its internal equivalent)
> to the pid of the procsub, and wait -n waits for it. These operations are
> performed by the same shell process.

Reply via email to