Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $PPID not updated when the PPID changes (parent killed)
- X-seq: zsh-workers 48867
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: $PPID not updated when the PPID changes (parent killed)
- Date: Mon, 17 May 2021 18:27:00 -0400
- Archived-at: <https://zsh.org/workers/48867>
- In-reply-to: <CAH+w=7bhsp71vazSJ_9Un1btb4mrxBgUciUg4zfGv15LeUfT1g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Openpgp: url=https://www.security.spodhuis.org/PGP/keys/keys-2013rsa-2020cv25519.asc
- References: <20210516152418.GA39669@zira.vinc17.org> <CAH+w=7a3y6MjrPQWnPc1O0ESroLesZXwaQ-_AxJB5XRk7xDj2Q@mail.gmail.com> <20210517202608.GA3255290@zira.vinc17.org> <CAH+w=7bhsp71vazSJ_9Un1btb4mrxBgUciUg4zfGv15LeUfT1g@mail.gmail.com>
On 2021-05-17 at 14:00 -0700, Bart Schaefer wrote:
> Still mulling over possible rewording (at the very least change "for"
> to "with" in that phrase). Suggestions that don't try to explain unix
> process hierarchy management in detail, are welcome.
PPID <S>
The initial parent process ID; that is, the process ID of the process
which created this shell process, at the time that it did so.
Just as for $$, the value is only set for the original shell and does
not dynamically change for implicit subshells (as created for (list)
and for pipelines).
I am unsure of the subshells to implicit subshells and the parenthetical
note. It's an attempt to be clearer that "if you run zsh within zsh,
that's not a subshell, sure _that_ gets $$ and $PPID reset".
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author