Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Loops and pipes
- X-seq: zsh-workers 55057
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Loops and pipes
- Date: Sun, 2 Aug 2026 14:55:24 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=j0sEoGeMvG9zUcOi6QKPJxO0atKGcmAhL2Ow8PN08nA=; fh=BgAYDYpL6Ne/A5nWEMVJiHiBtrz8Imz3uf26RDwgQX4=; b=HcWo1/LKZlH7r//Cpiv7z7Pe0Fl/vMiCNDkTXAWDt12FYUWQJTFqj25gpHu9BEkRpO 02E36crM910/pUBpu8AyAMFSKJPUMCfp5RvNGGSNjojSNty8nSD3Xa2sKvH1o40qfAAD RgRKtQoafXayqAh/ckIjTGKOnCPG+/kH3yb7nvVblEdw0DsjofKwJNXMbRb3WU3fN3aR ksSMZhiLTM9XweBovRNPlxkISFo8/uB1jTE0Cmjqw6MbDbhUNh0/vXDsvRTkrWrWkglG RAFKf3SWecZfxUa4oOsEiidwBL8EhZcU6b0E3k65kUNg6EeksNWQ9UJsWOpTaRvJEBl9 cC0Q==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1785707736; cv=none; d=google.com; s=arc-20260327; b=BNLJRZCn0zxgnUSJ86muzOysfFEHpsJX+09UT7BqqZNKELbw+u7IdR1iFDF07N5dzb Mfef1xdFJBT3BQHp21mLYD8GMlMcuMVc6ZtNnZtHgQqsswhwB2ZNB24MkM2kRatZvPbp aQT7z/j97+PcZY3neK7HA/xnHU/VfMbDFhe22q4Mfs13SEIwIqOAy4JHC7YrYdwwwUfs u9FXAMS5GXpOBpsoghMG5nnaCtM6f+1pdtijhV8ZnwR6KHoQRZJMvhCsyKQmeSZ4pocY H2Oqj4mWEAu0cwx62jdr0yYecv1/h6t9m80NXSVFDXN6DZcTTRyIljhD2Lxkma9JwAdO DyNw==
- Archived-at: <https://zsh.org/workers/55057>
- In-reply-to: <CAH+w=7bqte4Mi_rT+e68WpCRWAxYBZ4a6F+rQe31q2u0Skj=5A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAH+w=7aqY8wsSSczg_79gPzeA2zfQA=hLhKhXXnLLgNKK_0GKQ@mail.gmail.com> <CAA=-s3z2xCZpyH+9WO831OR4A4sutwtDYPfMY+rR=oTM_jU6VA@mail.gmail.com> <CAH+w=7bqte4Mi_rT+e68WpCRWAxYBZ4a6F+rQe31q2u0Skj=5A@mail.gmail.com>
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