bug-bash
[Top][All Lists]
Advanced

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

Re: Bash leaks heredoc fd to child processes


From: Chet Ramey
Subject: Re: Bash leaks heredoc fd to child processes
Date: Tue, 17 Jan 2017 13:42:07 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 1/17/17 8:24 AM, Siteshwar Vashisht wrote:
> Hello,
> 
> Bash leaks heredoc fd to child processes if heredoc string contains command 
> substitution.

Thanks for the report. Here's a simpler patch.

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/

Attachment: heredoc-fd-cloexec.patch
Description: Source code patch


reply via email to

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