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: Adam Danischewski
Subject: Re: Open pipe passed to child process
Date: Wed, 24 Aug 2016 12:09:45 -0400

I was expecting it to be the pts.

On Tue, Aug 23, 2016 at 4:58 PM, Chet Ramey <chet.ramey@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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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