Re: Bash leaks heredoc fd to child processes

2017-01-17 Thread Siteshwar Vashisht
- Original Message - > From: "Chet Ramey" <chet.ra...@case.edu> > To: "Siteshwar Vashisht" <svashi...@redhat.com>, bug-bash@gnu.org > Cc: "chet ramey" <chet.ra...@case.edu> > Sent: Tuesday, January 17, 2017 7:42:07 PM > Su

Re: Bash leaks heredoc fd to child processes

2017-01-17 Thread Chet Ramey
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

Re: Bash leaks heredoc fd to child processes

2017-01-17 Thread Chet Ramey
On 1/17/17 12:38 PM, Siteshwar Vashisht wrote: >> NAME >>pvs — report information about physical volumes > > Yes, it's the utility used in my reproducer. I used it because it was verbose > about the descriptor leak. It's ok, I was able to reproduce it using something else. -- ``The

Re: Bash leaks heredoc fd to child processes

2017-01-17 Thread Siteshwar Vashisht
- Original Message - > From: "John McKown" <john.archie.mck...@gmail.com> > To: "Chester Ramey" <chet.ra...@case.edu> > Cc: bug-bash@gnu.org, "Siteshwar Vashisht" <svashi...@redhat.com> > Sent: Tuesday, January 17, 2017 5:14:4

Re: Bash leaks heredoc fd to child processes

2017-01-17 Thread John McKown
On Tue, Jan 17, 2017 at 10:06 AM, Chet Ramey <chet.ra...@case.edu> wrote: > On 1/17/17 8:24 AM, Siteshwar Vashisht wrote: > > Hello, > > > > Bash leaks heredoc fd to child processes if heredoc string contains > command substitution. > > > > Reproduc

Re: Bash leaks heredoc fd to child processes

2017-01-17 Thread Chet Ramey
On 1/17/17 8:24 AM, Siteshwar Vashisht wrote: > Hello, > > Bash leaks heredoc fd to child processes if heredoc string contains command > substitution. > > Reproducer code : What is `pvs'? -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars