Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: stdout bug? (redirection not honored)



On Wed, Nov 01, 2006 at 11:41:28AM -0700, J.D. Laub wrote:

> The problem becomes an issue when you have a command that generates
> something on both stdout and stderr, and you want to dump the stdout
> and page through the stderr:
> 
> % foo 2>&1 > /dev/null | more

See Peter's response re: multios, but note that this command doesn't match
what you described.  It copies stderr to stdout, and then sends it to two
places with multios.  Instead, you probably want

    % foo 2> /dev/null | more

which merely sends stderr to /dev/null and pipes stdout to more.

Danek



Messages sorted by: Reverse Date, Date, Thread, Author