zsh-workers
 help / color / mirror / code / Atom feed
* Redirection bug for stderr?
@ 2014-11-20 10:44 Pierre Neidhardt
  2014-11-20 16:08 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre Neidhardt @ 2014-11-20 10:44 UTC (permalink / raw)
  To: zsh-workers

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-21 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-20 10:44 Redirection bug for stderr? Pierre Neidhardt
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

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).