From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3497 invoked from network); 13 Feb 2004 15:44:29 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 13 Feb 2004 15:44:29 -0000 Received: (qmail 25737 invoked by alias); 13 Feb 2004 15:44:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7049 Received: (qmail 25726 invoked from network); 13 Feb 2004 15:44:10 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 13 Feb 2004 15:44:10 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [152.81.2.43] by sunsite.dk (MessageWall 1.0.8) with SMTP; 13 Feb 2004 15:44:9 -0000 Received: from lefevre by greux.loria.fr with local (Exim 4.30) id 1ArfU9-0001SQ-JO; Fri, 13 Feb 2004 16:44:09 +0100 Date: Fri, 13 Feb 2004 16:44:09 +0100 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: |& loses data (buffering bug?) Message-ID: <20040213154409.GL27168@greux.loria.fr> Mail-Followup-To: zsh-users@sunsite.dk References: <20040213141505.GG27168@greux.loria.fr> <20040213143359.4ed3c3e5@tinky-winky> <20040213144311.GJ27168@greux.loria.fr> <20040213150016.1e64a843@tinky-winky> <20040213153031.GK27168@greux.loria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040213153031.GK27168@greux.loria.fr> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.6i Sender: Vincent Lefevre On 2004-02-13 16:30:31 +0100, Vincent Lefevre wrote: > On 2004-02-13 15:00:16 +0000, Peter Stephenson wrote: > > Can you get the same effect with e.g. > > > > perl -e 'open STDERR, ">&STDOUT"; > > open STDIN, "cvs status|"; > > > > exec "less";' > > > > which doesn't involve zsh at all? > > It doesn't work either, but this is different: the stderr output is > completely missing. In fact, it doesn't do the same thing: STDERR is redirected to the terminal here. For instance: greux:...ftware/mpfr-trunk> perl -e 'open STDERR, ">&STDOUT"; open STDIN, "cvs status|"; exec "cat > /dev/null";' cvs status: Examining . cvs status: Examining o.alpha cvs status: Examining o.linux cvs status: Examining o.solaris cvs status: Examining o.sunos cvs status: Examining tests greux:...ftware/mpfr-trunk> -- Vincent Lefèvre - Web: - 100% validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA