> > > 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 c...@case.edu http://cnswww.cns.cwru.edu/~chet/