zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Matthias Scheler <tron@zhadum.de>
Cc: zsh-workers@sunsite.dk
Subject: Re: I/O redirection problem in "zsh"
Date: Fri, 25 Oct 2002 12:13:27 +0100	[thread overview]
Message-ID: <E1852P9-0006dY-00@bimbo.logica.co.uk> (raw)
In-Reply-To: <20021025104047.GA27855@colwyn.zhadum.de>

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.


  reply	other threads:[~2002-10-25 11:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-25 10:40 Matthias Scheler
2002-10-25 11:13 ` Oliver Kiddle [this message]
2002-10-25 11:16 ` Borzenkov Andrey
2002-10-25 11:44   ` Matthias Scheler
2002-10-25 12:15     ` Oliver Kiddle
2002-11-06 10:10     ` Zefram

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=E1852P9-0006dY-00@bimbo.logica.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=tron@zhadum.de \
    --cc=zsh-workers@sunsite.dk \
    /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).