bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weird bug in small for loop and here documents and bash-4.x


From: Chet Ramey
Subject: Re: weird bug in small for loop and here documents and bash-4.x
Date: Mon, 22 Mar 2010 17:22:43 -0400

> > > when i strace bash, i see both files being opened, set to stdout, and
> > > then cat executed, but only in the first file (src/assembler.S) does
> > > there appear to be any data waiting for cat on stdin.  the second file's
> > > cat reads stdin and gets back 0 bytes.
> > > 
> > > trying to debug the bash source itself is a bit beyond me though ...
> > 
> > You might have to.  I can't reproduce this on Mac OS X, Ubuntu, or RHEL.
> 
> the implied question was, where are the interesting points in the source tree 
> i should be looking (i.e. setting breakpoints and checking state) ?

All the interesting stuff happens in redir.c:do_redirection_internal().  I
don't really know where to tell you to go from there; I don't really have
any idea yet about what might be happening.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]