From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11593 invoked from network); 2 Sep 2009 15:23:46 -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.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 2 Sep 2009 15:23:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 43609 invoked from network); 2 Sep 2009 15:23:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Sep 2009 15:23:39 -0000 Received: (qmail 18019 invoked by alias); 2 Sep 2009 15:23:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27240 Received: (qmail 18001 invoked from network); 2 Sep 2009 15:23:34 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 2 Sep 2009 15:23:34 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id C1F04801E281 for ; Wed, 2 Sep 2009 17:23:26 +0200 (CEST) Received: from rly23g.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly23g.srv.mailcontrol.com (MailControl) with ESMTP id n82FNARC019427 for ; Wed, 2 Sep 2009 16:23:22 +0100 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by rly23g.srv.mailcontrol.com (MailControl) id n82FMF0E005325 for ; Wed, 2 Sep 2009 16:22:15 +0100 Received: from dalamsexb02.AMERICAS.ROOT.PRI ([65.208.56.47]) by rly23g-eth0.srv.mailcontrol.com (envelope-sender ) (MIMEDefang) with ESMTP id n82FMA6Z004158; Wed, 02 Sep 2009 16:22:15 +0100 (BST) Received: from SJOAMSEXB01.AMERICAS.ROOT.PRI ([10.110.12.58]) by dalamsexb02.AMERICAS.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Wed, 2 Sep 2009 10:20:14 -0500 Received: from cameurexb01.EUROPE.ROOT.PRI ([10.100.137.61]) by SJOAMSEXB01.AMERICAS.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Sep 2009 08:20:13 -0700 Received: from news01.csr.com ([10.99.50.25]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Sep 2009 16:20:11 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id n82FKAI9002466; Wed, 2 Sep 2009 16:20:11 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id n82FKAZC002462; Wed, 2 Sep 2009 16:20:10 +0100 Message-Id: <200909021520.n82FKAZC002462@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk, 537283@bugs.debian.org Subject: Re: Bug#537283: homing in In-reply-to: <20090902150000.GA6966@scru.org> References: <20090902070912.GA31041@piper.oerlikon.madduck.net> <20090902150000.GA6966@scru.org> Comments: In-reply-to Clint Adams message dated "Wed, 02 Sep 2009 15:00:00 -0000." Date: Wed, 02 Sep 2009 16:20:10 +0100 From: Peter Stephenson X-OriginalArrivalTime: 02 Sep 2009 15:20:11.0136 (UTC) FILETIME=[DCD90800:01CA2BE0] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-09-22-01 (www.mailcontrol.com) on 10.71.1.133 X-Virus-Scanned: ClamAV 0.94.2/9767/Wed Sep 2 10:41:31 2009 on bifrost X-Virus-Status: Clean Clint Adams wrote: > On Wed, Sep 02, 2009 at 09:09:12AM +0200, martin f krafft wrote: > > % precmd_test() { set -x; test -d . && echo . is a directory; set +x; } > > % precmd_functions=(precmd_test) > > +precmd_test:0> test -d . > > +precmd_test:0> echo . is a directory > > . is a directory > > +precmd_test:0> set +x > > % [PRESS CTRL-C] > > +precmd_test:0> test -d . > > precmd_test:test: argument expected > > +precmd_test:0> set +x Incomplete previous patch (27079). Index: Src/builtin.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/builtin.c,v retrieving revision 1.234 diff -u -r1.234 builtin.c --- Src/builtin.c 24 Jul 2009 18:35:53 -0000 1.234 +++ Src/builtin.c 2 Sep 2009 15:18:03 -0000 @@ -5818,17 +5818,19 @@ testlex(); prog = parse_cond(); condlex = zshlex; - lexrestore(); if (errflag) { errflag = 0; + lexrestore(); return 1; } if (!prog || tok == LEXERR) { zwarnnam(name, tokstr ? "parse error" : "argument expected"); + lexrestore(); return 1; } + lexrestore(); if (*curtestarg) { zwarnnam(name, "too many arguments"); -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom