From: Pierre Neidhardt <ambrevar@gmail.com>
To: zsh-workers@zsh.org
Subject: Redirection bug for stderr?
Date: Thu, 20 Nov 2014 11:44:40 +0100 [thread overview]
Message-ID: <20141120104440.GA23262@gmail.com> (raw)
Hi!
I recently noticed a somewhat unexpected behaviour with a configuration-less zsh 5.0.7:
$ ls /root >/dev/null 2>&1
$ ls /root 2>/dev/null | cat
$ ls /root >/dev/null 2>&1 | cat
ls: cannot open directory /root: Permission denied
I believe last error line should not appear. The problem is about stream
redirection when piped. `ls /root` is just an example of command printing to
stderr.
On Arch Linux, zsh is built with:
./configure --prefix=/usr \
--docdir=/usr/share/doc/zsh \
--htmldir=/usr/share/doc/zsh/html \
--enable-etcdir=/etc/zsh \
--enable-zshenv=/etc/zsh/zshenv \
--enable-zlogin=/etc/zsh/zlogin \
--enable-zlogout=/etc/zsh/zlogout \
--enable-zprofile=/etc/zsh/zprofile \
--enable-zshrc=/etc/zsh/zshrc \
--enable-maildir-support \
--with-term-lib='ncursesw' \
--enable-multibyte \
--enable-function-subdirs \
--enable-fndir=/usr/share/zsh/functions \
--enable-scriptdir=/usr/share/zsh/scripts \
--with-tcsetpgrp \
--enable-pcre \
--enable-cap \
--enable-zsh-secure-free
Any clue?
--
Pierre Neidhardt
Coming together is a beginning;
keeping together is progress;
working together is success.
next reply other threads:[~2014-11-20 10:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 10:44 Pierre Neidhardt [this message]
2014-11-20 16:08 ` Peter Stephenson
2014-11-20 16:58 ` Stephane Chazelas
2014-11-20 20:28 ` Pierre Neidhardt
2014-11-21 11:29 ` [PATCH][DOC] " Stephane Chazelas
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=20141120104440.GA23262@gmail.com \
--to=ambrevar@gmail.com \
--cc=zsh-workers@zsh.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).