From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26061 invoked from network); 21 Apr 2009 09:38:30 -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.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham 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; 21 Apr 2009 09:38:30 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 19262 invoked from network); 21 Apr 2009 09:38:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Apr 2009 09:38:25 -0000 Received: (qmail 9290 invoked by alias); 21 Apr 2009 09:38:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26858 Received: (qmail 9280 invoked from network); 21 Apr 2009 09:38:19 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Apr 2009 09:38:19 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 1F6028028C72 for ; Tue, 21 Apr 2009 11:37:19 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly27g.srv.mailcontrol.com (MailControl) with ESMTP id n3L9bftN003546 for ; Tue, 21 Apr 2009 10:38:10 +0100 Received: from news01 ([10.99.50.25]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 21 Apr 2009 10:35:37 +0100 Date: Tue, 21 Apr 2009 10:35:37 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: zsh 4.3.9-dev-2, two test failures on NetBSD Message-ID: <20090421103537.76769226@news01> In-Reply-To: <20090420214822.GB2989@svalbard.freeshell.org> References: <26804.1239987872@csr.com> <20090420040018.GA2989@svalbard.freeshell.org> <20090420174808.40d3f9f9@news01> <20090420214822.GB2989@svalbard.freeshell.org> 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: 21 Apr 2009 09:35:37.0738 (UTC) FILETIME=[873056A0:01C9C264] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.71.0.137 X-Virus-Scanned: ClamAV 0.92.1/9264/Tue Apr 21 10:05:09 2009 on bifrost X-Virus-Status: Clean On Mon, 20 Apr 2009 21:48:22 +0000 Paul Ackersviller wrote: > On Mon, Apr 20, 2009 at 05:48:08PM +0100, Peter Stephenson wrote: > > On Mon, 20 Apr 2009 04:00:18 +0000 > > We don't use TIOCGETD (get terminal line discipline) directly, so either > > this is well buried or it's coming from /bin/sh. > > Thanks, you're right it was /bin/sh. The system turns out to have a > stty in /etc/profile that's really intended only for interactive shells. > The test is for login shells, so that makes sense. Could there be a way to > work around such breakage to /etc/profile? I can't think of anything easy. It might help to use zsh instead of sh here; zsh respects -f for login shells and all we need to know is whether the "-" is at the start of the line. Index: Test/A01grammar.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/A01grammar.ztst,v retrieving revision 1.18 diff -u -r1.18 A01grammar.ztst --- Test/A01grammar.ztst 27 Feb 2009 10:23:58 -0000 1.18 +++ Test/A01grammar.ztst 21 Apr 2009 09:33:43 -0000 @@ -62,9 +62,9 @@ (exec /bin/sh; echo bar) 0:`exec' precommand modifier - (exec -l /bin/sh -c 'echo $0') + (exec -l $ZTST_testdir/../Src/zsh -fc 'echo $0' | sed 's%/.*/%%' ) 0:`exec' with -l option ->-/bin/sh +>-zsh (exec -a /bin/SPLATTER /bin/sh -c 'echo $0') 0:`exec' with -a option -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070