From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1229 invoked from network); 1 Nov 2006 19:00:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Nov 2006 19:00:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 99475 invoked from network); 1 Nov 2006 18:59:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Nov 2006 18:59:57 -0000 Received: (qmail 26082 invoked by alias); 1 Nov 2006 18:59:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22945 Received: (qmail 26073 invoked from network); 1 Nov 2006 18:59:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Nov 2006 18:59:50 -0000 Received: (qmail 98667 invoked from network); 1 Nov 2006 18:59:50 -0000 Received: from lorien.comfychair.org (64.81.241.43) by a.mx.sunsite.dk with SMTP; 1 Nov 2006 18:59:47 -0000 Received: from lorien.comfychair.org (localhost [127.0.0.1]) by lorien.comfychair.org (8.13.7/8.13.7) with ESMTP id kA1IxhC0010994; Wed, 1 Nov 2006 10:59:43 -0800 Received: (from duvall@localhost) by lorien.comfychair.org (8.13.7/8.13.7/Submit) id kA1Ixgco010993; Wed, 1 Nov 2006 10:59:42 -0800 Date: Wed, 1 Nov 2006 10:59:42 -0800 From: Danek Duvall To: "J.D. Laub" Cc: zsh-workers@sunsite.dk Subject: Re: stdout bug? (redirection not honored) Message-ID: <20061101185942.GK18123@lorien.comfychair.org> Mail-Followup-To: Danek Duvall , "J.D. Laub" , zsh-workers@sunsite.dk References: <20061101184128.GA95245@arctic.icelab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061101184128.GA95245@arctic.icelab.net> User-Agent: mutt-ng/devel-r535 (Linux) 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