Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh 4.3.9-dev-2, two test failures on NetBSD
- X-seq: zsh-workers 26858
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: zsh 4.3.9-dev-2, two test failures on NetBSD
- Date: Tue, 21 Apr 2009 10:35:37 +0100
- In-reply-to: <20090420214822.GB2989@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <26804.1239987872@xxxxxxx> <20090420040018.GA2989@xxxxxxxxxxxxxxxxxxxxxx> <20090420174808.40d3f9f9@news01> <20090420214822.GB2989@xxxxxxxxxxxxxxxxxxxxxx>
On Mon, 20 Apr 2009 21:48:22 +0000
Paul Ackersviller <pda@xxxxxxxxxxxxxxxx> 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 <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author