From: David Hughes <David.W.Hughes@cern.ch>
To: zsh-workers@sunsite.dk
Subject: Two bug reports: alias/function disagreements; incorrect redirection
Date: Fri, 22 Mar 2002 13:24:40 +0100 [thread overview]
Message-ID: <3C9B2288.5070304@cern.ch> (raw)
These appear to be long-standing problems (since v2.6 at least), and
they're still around as of v4.0.4, and they're not in the known-bugs
FAQ, and they seem to be platform-independent.
Bug I
=====
Bad Things happen if I assign a name to an alias and then to a function.
$ which echo
echo: shell built-in command
$ alias foo='echo bar'
$ foo () { echo baz }
$ which echo
echo () {
echo baz
}
Of course Very Bad Things now happen if I try to use `echo' or `foo'.
Bug II
======
$ /bin/sh -c 'echo out; echo err >&2' 2>&1 >/dev/null
err
$ /bin/sh -c 'echo out; echo err >&2' 2>&1 >/dev/null | cat
err
out
I have reproduced both of these bugs on these platforms:
RedHat 7.2 GNU/Linux (heavily CERN-customised), zsh 4.0.4
RedHat 7.1 GNU/Linux, zsh 3.1.6-dev-22
SunOS, zsh 2.6-beta4
HP-UX, zsh 2.6-beta21
// David
--
David Hughes
UNIX sysadmin, Serco SA -+- Tel.: +41 22 767 4047
Computing Centre, CERN -+- David.W.Hughes@cern.ch
+++ A good bug report is an expression of love.
This message expresses my own opinions and should not be construed
as the opinions of Serco (who employ me) or of CERN (where I work).
next reply other threads:[~2002-03-22 12:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-22 12:24 David Hughes [this message]
2002-03-22 12:41 ` Peter Stephenson
2002-03-23 21:18 ` Piping stderr (was Re: Two bug reports) Wayne Davison
2002-03-23 22:45 ` Bart Schaefer
2002-03-23 23:47 ` Multios again (Re: Piping stderr (was Re: Two bug reports)) Bart Schaefer
2002-03-24 9:01 ` Piping stderr (was Re: Two bug reports) Wayne Davison
2002-03-24 16:47 ` Borsenkow Andrej
2002-03-24 19:02 ` Bart Schaefer
2002-03-24 19:09 ` Bart Schaefer
2002-03-24 19:50 ` PATCH: (Doc) " Bart Schaefer
2002-03-25 0:17 ` Wayne Davison
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=3C9B2288.5070304@cern.ch \
--to=david.w.hughes@cern.ch \
--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).