bug-bash
[Top][All Lists]
Advanced

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

Re: Open pipe passed to child process


From: Chet Ramey
Subject: Re: Open pipe passed to child process
Date: Tue, 23 Aug 2016 16:58:24 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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