From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: zsh 4.3.9-dev-2, two test failures on NetBSD
Date: Tue, 21 Apr 2009 10:35:37 +0100 [thread overview]
Message-ID: <20090421103537.76769226@news01> (raw)
In-Reply-To: <20090420214822.GB2989@svalbard.freeshell.org>
On Mon, 20 Apr 2009 21:48:22 +0000
Paul Ackersviller <pda@sdf.lonestar.org> 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@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
next prev parent reply other threads:[~2009-04-21 9:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <26804.1239987872@csr.com>
2009-04-17 21:22 ` zsh 4.3.9-dev-2 Bart Schaefer
2009-04-17 21:36 ` Bart Schaefer
2009-04-18 11:55 ` Peter Stephenson
2009-04-20 4:00 ` zsh 4.3.9-dev-2, two test failures on NetBSD Paul Ackersviller
2009-04-20 16:48 ` Peter Stephenson
2009-04-20 21:48 ` Paul Ackersviller
2009-04-21 9:35 ` Peter Stephenson [this message]
2009-04-21 18:49 ` Paul Ackersviller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090421103537.76769226@news01 \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).