Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Redirection bug for stderr?
- X-seq: zsh-workers 33720
- From: Pierre Neidhardt <ambrevar@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Redirection bug for stderr?
- Date: Thu, 20 Nov 2014 11:44:40 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=o0ChhVpuSf4EUiQuC7Lv/txOLbiNEfu0u9AY90aKP9I=; b=ennebdM5O11AebK8ByjMLKC9whe1iSC+WYOXrvPWYXuk1f4TntcgySEiLeCuwZ1uTQ fBGSXM9t3a0mfvzRIOdpNuXO2AA9ux7rz+rS5RtJeB980H+6q4Nm2UrjtbTdskr6kwx5 vxw3PDAm+G7/wD89uC0xQSR+v1EYbTD/URFMok+LEWPuYIEokwhmw2aUpGuBt44pxLW0 gGCgZVWVPKQtoF1kVI2rsVx3KNSSwqxj34GWYSzpDICIcBvQfumojal81jfAVs0UtW8u 3zAhWrmvzP0X/PC1p0VsZnJSwsDS3NqmAC5q+xSiP1JD/1eKRzlZMKPFUZrCADgo2MUN fg6g==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author