coproc FDs (file descriptors) available to subshells

2018-01-24 Thread Tadeus Prastowo
Hi! To quote https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html#Coprocesses "The file descriptors are not available in subshells." So, that is my expectation. However, the following Bash fails me: Configuration Information [Automatically generated, do not change]: Machine: x86

Re: coproc FDs (file descriptors) available to subshells

2018-01-24 Thread Chet Ramey
On 1/24/18 3:38 AM, Tadeus Prastowo wrote: > Hi! > > To quote > https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html#Coprocesses > > "The file descriptors are not available in subshells." The file descriptors are set to close-on-exec, so they're not available to new processes, an

Re: coproc FDs (file descriptors) available to subshells

2018-01-24 Thread Tadeus Prastowo
On Wed, Jan 24, 2018 at 3:16 PM, Chet Ramey wrote: > On 1/24/18 3:38 AM, Tadeus Prastowo wrote: >> Hi! >> >> To quote >> https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html#Coprocesses >> >> "The file descriptors are not available in subshells." > > The file descriptors are set to

Re: coproc FDs (file descriptors) available to subshells

2018-01-24 Thread Chet Ramey
On 1/24/18 9:50 AM, Tadeus Prastowo wrote: > On Wed, Jan 24, 2018 at 3:16 PM, Chet Ramey wrote: >> On 1/24/18 3:38 AM, Tadeus Prastowo wrote: >>> Hi! >>> >>> To quote >>> https://www.gnu.org/software/bash/manual/html_node/Coprocesses.html#Coprocesses >>> >>> "The file descriptors are not availabl

Re: coproc FDs (file descriptors) available to subshells

2018-01-24 Thread Tadeus Prastowo
On Wed, Jan 24, 2018 at 3:55 PM, Tadeus Prastowo wrote: > On Wed, Jan 24, 2018 at 3:53 PM, Chet Ramey wrote: >> On 1/24/18 9:50 AM, Tadeus Prastowo wrote: >>> On Wed, Jan 24, 2018 at 3:16 PM, Chet Ramey wrote: On 1/24/18 3:38 AM, Tadeus Prastowo wrote: > Hi! > > To quote >

Re: coproc FDs (file descriptors) available to subshells

2018-01-24 Thread Tadeus Prastowo
On Wed, Jan 24, 2018 at 5:51 PM, Tadeus Prastowo wrote: > On Wed, Jan 24, 2018 at 3:55 PM, Tadeus Prastowo > wrote: >> On Wed, Jan 24, 2018 at 3:53 PM, Chet Ramey wrote: >>> On 1/24/18 9:50 AM, Tadeus Prastowo wrote: On Wed, Jan 24, 2018 at 3:16 PM, Chet Ramey wrote: > On 1/24/18 3:38

Re: coproc FDs (file descriptors) available to subshells

2018-01-24 Thread Tadeus Prastowo
On Wed, Jan 24, 2018 at 7:32 PM, Tadeus Prastowo wrote: > On Wed, Jan 24, 2018 at 5:51 PM, Tadeus Prastowo > wrote: >> On Wed, Jan 24, 2018 at 3:55 PM, Tadeus Prastowo >> wrote: [...] >>> Okay, I will propose a patch. >> >> diff --git a/doc/bashref.texi b/doc/bashref.texi >> index c0f4a2f..fee

Re: coredump from C-c-ed function

2018-01-24 Thread Chet Ramey
On 1/23/18 12:42 PM, xftroxgpx wrote: > I had no idea that the latest bash(from master) is almost 1 year old: > commit bc007799f0e1362100375bb95d952d28de4c62fb (origin/master, origin/HEAD, > master) > Date: Fri Jan 27 11:25:44 2017 -0500 > > Bash-4.4 patch 12 That's the stable version. -