From: Wayne Davison <wayned@users.sourceforge.net>
To: Vincent Stemen <zsh@hightek.org>
Cc: zsh-users@sunsite.dk
Subject: Re: Possible bug in zsh
Date: Mon, 29 Dec 2003 01:21:22 -0800 [thread overview]
Message-ID: <20031229092122.GA23732@binome.blorf.net> (raw)
In-Reply-To: <20031229080222.GA75453@quark.localdomain>
On Mon, Dec 29, 2003 at 02:02:22AM -0600, Vincent Stemen wrote:
> I think I may have encountered a bug in Z shell.
Here's a simplified test case that better shows what's gone wrong:
false; if eval ''; then echo one; fi
true; if eval ''; then echo two; fi
This outputs only "two" in zsh, but both "one" and "two" in bash. It
appears that an eval of an empty string in zsh returns the return code
of the last-run command. In your example script, the "[ -n ...]" part
failed, so the following "if ! eval $empty ..." bit was executed as if
the eval of the empty string had also failed. I also assume that this
is a bug.
..wayne..
next prev parent reply other threads:[~2003-12-29 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-29 8:02 Vincent Stemen
2003-12-29 9:21 ` Wayne Davison [this message]
2004-01-01 23:38 ` Wayne Davison
2004-01-02 1:32 ` James Devenish
2004-01-03 23:09 ` Vincent Stemen
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=20031229092122.GA23732@binome.blorf.net \
--to=wayned@users.sourceforge.net \
--cc=zsh-users@sunsite.dk \
--cc=zsh@hightek.org \
/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).