From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16710 invoked from network); 18 Dec 2003 09:59:06 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 18 Dec 2003 09:59:06 -0000 Received: (qmail 22629 invoked by alias); 18 Dec 2003 09:58:39 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6921 Received: (qmail 22583 invoked from network); 18 Dec 2003 09:58:38 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 18 Dec 2003 09:58:38 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [81.129.18.130] by sunsite.dk (MessageWall 1.0.8) with SMTP; 18 Dec 2003 9:58:37 -0000 Received: by umarumohammed.homeip.net (Postfix, from userid 1000) id 9207815AD24; Thu, 18 Dec 2003 09:59:23 +0000 (GMT) Date: Thu, 18 Dec 2003 09:59:23 +0000 From: Ibraheem Umaru-Mohammed To: ZSH User List Subject: Re: how to pipe to stdout and stderr Message-ID: <20031218095923.GA15159@umarumohammed.btinternet.com> References: <20031218001201.GA27866@spiegl.de> <1071711880.5099.9.camel@umarumohammed> <20031218020123.GA7059@spiegl.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031218020123.GA7059@spiegl.de> X-OS: Gentoo Base System version 1.4.3.12 - Linux 2.6.0-test10-gentoo-r1 User-Agent: Mutt/1.5.5.1i On [18/12/03 03:01 +0100], Andy Spiegl wrote: > > ls foo bar > stdout 2> stderr > > Thanks, but I don't want to redirect to 2 files, but pipe to 2 programs. > Andy. Right, I get ya. Does this help: [...] ls touch foo ls foo ls foo bar >>(cat > stdout) 2>>(cat > stderr) ls foo stderr stdout cat stdout foo cat stderr ls: bar: No such file or directory [...] HTH, --ibz. --