Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Subshells and parameters (was: File locking within zsh?)
- X-seq: zsh-users 10252
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Subshells and parameters (was: File locking within zsh?)
- Date: Fri, 12 May 2006 11:17:22 +0200
- In-reply-to: <20060511160123.29080117.pws@xxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <lt8xp8sko1.fsf@xxxxxxxxxxxxxxxxxx> <20060511160123.29080117.pws@xxxxxxx>
On 2006-05-11 16:01:23 +0100, Peter Stephenson wrote:
> "Tim Writer" <tim@xxxxxxxxxxx> wrote:
> > Okay. But I don't understand this:
> >
> > tim@ganesh% echo $ZSH_VERSION
> > 4.2.5
> > tim@ganesh% echo $$; ( echo $$ )
> > 18095
> > 18095
> > tim@ganesh%
>
> 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.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Messages sorted by:
Reverse Date,
Date,
Thread,
Author