From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18072 invoked from network); 25 Oct 2002 11:14:14 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Oct 2002 11:14:14 -0000 Received: (qmail 28394 invoked by alias); 25 Oct 2002 11:14:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17854 Received: (qmail 28372 invoked from network); 25 Oct 2002 11:13:58 -0000 X-VirusChecked: Checked cc: zsh-workers@sunsite.dk In-reply-to: <20021025104047.GA27855@colwyn.zhadum.de> From: Oliver Kiddle References: <20021025104047.GA27855@colwyn.zhadum.de> To: Matthias Scheler Subject: Re: I/O redirection problem in "zsh" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25503.1035544368.1@logica.com> Date: Fri, 25 Oct 2002 12:13:27 +0100 Sender: kiddleo@logica.com Message-Id: On 25 Oct, you wrote: > > 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 This is an effect of the multios option. If you do an unsetopt multios, it will work the same as in sh. Multios allows shorthands for the tee command so the output above is sent to both /dev/null and the pipe which you can see if you use a file instead of /dev/null. Oliver This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.