From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10692 invoked from network); 12 May 2006 09:17:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 May 2006 09:17:40 -0000 Received: (qmail 42722 invoked from network); 12 May 2006 09:17:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 May 2006 09:17:33 -0000 Received: (qmail 25283 invoked by alias); 12 May 2006 09:17:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10252 Received: (qmail 25273 invoked from network); 12 May 2006 09:17:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 May 2006 09:17:26 -0000 Received: (qmail 41704 invoked from network); 12 May 2006 09:17:26 -0000 Received: from vinc17.net8.nerim.net (HELO prunille.vinc17.org) (62.212.121.106) by a.mx.sunsite.dk with SMTP; 12 May 2006 09:17:24 -0000 Received: by prunille.vinc17.org (Postfix, from userid 501) id 10E948ECE46; Fri, 12 May 2006 11:17:22 +0200 (CEST) Date: Fri, 12 May 2006 11:17:22 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Subshells and parameters (was: File locking within zsh?) Message-ID: <20060512091722.GO4116@prunille.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20060511160123.29080117.pws@csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060511160123.29080117.pws@csr.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.11-vl-20060510 On 2006-05-11 16:01:23 +0100, Peter Stephenson wrote: > "Tim Writer" 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: $ 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA