I was expecting it to be the pts. On Tue, Aug 23, 2016 at 4:58 PM, Chet Ramey <chet.ra...@case.edu> wrote:
> On 8/23/16 2:28 PM, Adam Danischewski wrote: > > I'm not sure if this is a bug, or a feature but I had to debug some code > as > > a result so I'd like to bring it to your attention, and if you know of a > > better way to read from pipes please let me know. > > Just so I'm not confused: you mean that you don't want the process > substitution to be open as file descriptor 0 in /tmp/test.bsh? The > redirection makes the pipe resulting from the process substitution > file descriptor 0 for the duration of the while loop. Child processes > inherit file descriptor 0 from their parent. What would you rather have > as the standard input for the script in this case? > > Chet > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > ``Ars longa, vita brevis'' - Hippocrates > Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~ > chet/ > >