From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: ksh Emulation Not Clearing Envariables
Date: Sun, 9 May 2004 14:58:00 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0405091449250.29962-100000@toltec.zanshin.com> (raw)
In-Reply-To: <95E51012-A151-11D8-B3B9-000A95B34D8E@blasted-heath.com>
On Sat, 8 May 2004, Chris Jepeway wrote:
> I'd expect the output to be
>
> X=one
>
> Instead, I see
>
> X=one
> X=one
>
> Without ksh emulation enabled, I see the expected output.
>
> This is a bug, right?
It's the intended behavior. Whether the intention is wrong, I'm not sure.
I believe there was a discussion of the POSIX requirements for this at
some point in the past, and the non-zsh-emulation modes follow POSIX while
(as usual, e.g. shwordsplit) zsh-mode does what it thinks is preferable.
It's possible that ksh also does not follow POSIX and therefore zsh's ksh
emulation shouldn't do so. Or its possible that ksh does two different
things depending on the form of the function declaration, e.g. whether
function e { ... }
vs
e() { ... }
and zsh is only able to emulate one or the other because it does not
distinguish the two the way ksh does. (There is no promise made that zsh
will be able to run ksh scripts unmodified; zsh doesn't support namerefs,
among other things.)
> If so, should I file a report @ sourceforge.net?
I keep thinking we should just disable the bug tracker at sourceforge. I
don't think anyone pays regular attention to it any more. Bug reports are
usually "filed" by sending them to the zsh-workers mailing list.
next prev parent reply other threads:[~2004-05-10 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-09 0:41 Chris Jepeway
2004-05-09 21:58 ` Bart Schaefer [this message]
2004-05-10 14:52 ` Peter Stephenson
2004-05-11 17:03 ` Chris Jepeway
2004-05-11 16:59 ` Chris Jepeway
2004-05-11 17:34 ` Peter Stephenson
[not found] ` <040511181944.AA29985.SM@caleb.ins.cwru.edu>
2004-05-11 18:44 ` Chris Jepeway
2004-05-11 20:22 ` Bart Schaefer
[not found] ` <040511192759.AA02456.SM@caleb.ins.cwru.edu>
2004-05-11 20:38 ` Chris Jepeway
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=Pine.LNX.4.44.0405091449250.29962-100000@toltec.zanshin.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@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).