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

Re: Subshells and parameters



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