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 13:15:41 +0100 [thread overview]
Message-ID: <20021025121541.GA8201@logica.com> (raw)
In-Reply-To: <20021025114451.GB28474@colwyn.zhadum.de>
On Fri, Oct 25, 2002 at 01:44:52PM +0200, Matthias Scheler wrote:
> On Fri, Oct 25, 2002 at 03:16:13PM +0400, Borzenkov Andrey wrote:
> > This ambiguous. Both > and | mean redirection of stdout.
>
> Is there a better portable way to redirect stderr to the pipe but
> ignore stdout?
I can't actually think of a way. Anyone else? If you are trying to
write a portable script, note that zsh will unset the multios
option when told to emulate sh.
If there isn't a way, perhaps we should make it so that:
grep localhost /etc/hosts fasel 2>&1 1>/dev/null | cat -b
is different from
grep localhost /etc/hosts fasel 2>&1 >/dev/null | cat -b
with the 1 causing it to move file-descriptor 1 instead of adding
another output for the pseudo-tee process.
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.
next prev parent reply other threads:[~2002-10-25 12:16 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
2002-10-25 11:16 ` Borzenkov Andrey
2002-10-25 11:44 ` Matthias Scheler
2002-10-25 12:15 ` Oliver Kiddle [this message]
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=20021025121541.GA8201@logica.com \
--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).