Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Subshells and parameters
- X-seq: zsh-users 10254
- From: Lloyd Zusman <ljz@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Subshells and parameters
- Date: Fri, 12 May 2006 08:09:26 -0400
- Cancel-lock: sha1:UNFAT60cGdppMi6aYP8O3fospIg=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <lt8xp8sko1.fsf@xxxxxxxxxxxxxxxxxx> <20060511160123.29080117.pws@xxxxxxx> <20060512091722.GO4116@xxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Vincent Lefevre <vincent@xxxxxxxxxx> writes:
> On 2006-05-11 16:01:23 +0100, Peter Stephenson wrote:
>>
>> [ ... ]
>>
>> That's standard shell behaviour: $$ is supposed to be unique to the
>> parent shell, not to every subshell instance. [...]
>
> The zshparam man page says:
>
> $ <S> The process ID of this shell.
>
> IMHO, it should give more details, e.g.: in subshells, the value
> of this parameter is not changed. Ditto for $PPID. Possibly add a
> section about subshells in the man pages.
So how can we get the process ID of any given subshell?
--
Lloyd Zusman
ljz@xxxxxxxxxx
God bless you.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author