From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17931 invoked from network); 25 Oct 2002 10:41:12 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Oct 2002 10:41:12 -0000 Received: (qmail 20025 invoked by alias); 25 Oct 2002 10:40:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17853 Received: (qmail 20007 invoked from network); 25 Oct 2002 10:40:50 -0000 Date: Fri, 25 Oct 2002 12:40:48 +0200 From: Matthias Scheler To: zsh-workers@sunsite.dk Subject: I/O redirection problem in "zsh" Message-ID: <20021025104047.GA27855@colwyn.zhadum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Hello, the I/O redirection in the following command doesn't work properly in "zsh": grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b tron@colwyn:~>grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b 1 grep: fasel: No such file or directory 2 /etc/hosts:::1 localhost 3 /etc/hosts:127.0.0.1 localhost tron@colwyn:~>sh $ grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b 1 grep: fasel: No such file or directory $ bash bash-2.05$ grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b 1 grep: fasel: No such file or directory bash-2.05$ ksh $ grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b 1 grep: fasel: No such file or directory I can reproduce this problem with ZSH 3.0.8 under Solaris and ZSH 4.0.6 under NetBSD. Kind regards -- Matthias Scheler http://scheler.de/~matthias/