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

Re: |& loses data (buffering bug?)



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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/> - 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



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