Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Loops and pipes



On Fri, Jul 31, 2026 at 8:57 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, Jul 31, 2026 at 3:12 PM Mark J. Reed <markjreed@xxxxxxxxx> wrote:
> >
> > Bash introduced a feature in 4.4 whereby process substitution places the child process's PID into $!
>
> I would think that's not too hard to do.

This is already available from the zsh/system module as $sysparams[procsubstpid]

Which means if we want the $! variation, we just have to decide where
to assign 'lastpid = procsubstpid'

There would still be cases where [[ $! != $sysparams[procsubstpid] ]]
so I wouldn't suggest dropping the latter.




Messages sorted by: Reverse Date, Date, Thread, Author