From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3791 invoked from network); 30 Sep 2008 16:53:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,WEIRD_PORT autolearn=no version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 30 Sep 2008 16:53:24 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 68313 invoked from network); 30 Sep 2008 16:53:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Sep 2008 16:53:20 -0000 Received: (qmail 29693 invoked by alias); 30 Sep 2008 16:53:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25779 Received: (qmail 29681 invoked from network); 30 Sep 2008 16:53:11 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 30 Sep 2008 16:53:11 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 975268030847 for ; Tue, 30 Sep 2008 18:53:06 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly21g.srv.mailcontrol.com (MailControl) with ESMTP id m8UGr27R004495 for ; Tue, 30 Sep 2008 17:53:02 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 30 Sep 2008 17:53:01 +0100 Date: Tue, 30 Sep 2008 17:53:00 +0100 From: Peter Stephenson To: "Zsh hackers list" Subject: Re: Help me track down a tough bug? (probably funcfiletrace, subshells and possibly I/O redirection) Message-ID: <20080930175300.2e93fabf@news01> In-Reply-To: <6cd6de210809291718n2fa49590q42eaec499d106284@mail.gmail.com> References: <6cd6de210809281219i4bf1ed18mefa45b967fa835a6@mail.gmail.com> <20080928221651.6ee7f671@pws-pc> <6cd6de210809281932u2e04a844l219d1db5a7568a73@mail.gmail.com> <20080929095201.451381d0@news01> <6cd6de210809290411m60cb669bk3817d768adce378a@mail.gmail.com> <200809291125.m8TBPsQM005256@news01.csr.com> <6cd6de210809290711j12363e1bo159e1739bae7b2fd@mail.gmail.com> <200809291425.m8TEPSoR007204@news01.csr.com> <20080929224209.1bd8f3f6@pws-pc> <6cd6de210809291718n2fa49590q42eaec499d106284@mail.gmail.com> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Sep 2008 16:53:01.0126 (UTC) FILETIME=[FF9C4E60:01C9231C] X-Scanned-By: MailControl A-08-50-15 (www.mailcontrol.com) on 10.71.0.131 X-Virus-Scanned: ClamAV 0.92.1/8361/Tue Sep 30 16:28:47 2008 on bifrost X-Virus-Status: Clean On Mon, 29 Sep 2008 20:18:52 -0400 "Rocky Bernstein" wrote: > zshdb<3> p ${funcfiletrace[@]} > > ./command/eval.sh:11 ./command/eval.sh:27 ./lib/processor.sh:96 > ./lib/processor.sh:44 ./zshdb2.sh:9 ./testing.sh:3 ./zshdb2.sh:34 > ./command/eval.sh:11 ./command/eval.sh:27 ./lib/processor.sh:96 > ./lib/processor.sh:44 ./zshdb2.sh:9 ./testing.sh:3 ./zshdb2.sh:34 > ./zshdb2.sh:9 ./testing.sh:3 ./zshdb2.sh:34 > # Were did that double set of lines come from? Hmmm... I'm not convinced this has got anything directly to do with the shell rather than the debugger. Here's what I get when I simply ask for the PID repeated times: --------------- ./zshdb2.sh:7 ./zshdb2.sh:34 =============== (./zshdb2.sh:34): . ./testing.sh ./zshdb2.sh:9 ./zshdb2.sh:34 zshdb<1> p $$ 711 ./zshdb2.sh:9 ./zshdb2.sh:34 zshdb<2> p $$ 711 711 ./zshdb2.sh:9 ./zshdb2.sh:34 zshdb<3> p $$ 711 711 711 ./zshdb2.sh:9 ./zshdb2.sh:34 zshdb<4> It looks like something is odd with whatever is holding the command to be executed. You know better than me how that works. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070