Re: closing '}' misplaced in here-document in function

2019-07-01 Thread Chet Ramey
On 6/29/19 1:44 PM, Denis McKeon wrote: > Bash Version: 5.0 > Patch Level: 7 > Release Status: release > > Description: > >     Bash appears to move the closing '}' >     from after a closing here-document delimiter >     to the start of the here-doc body >     (just after the opening here-docum

Re: Large compound commands resulting in a segfault

2019-07-01 Thread Chet Ramey
On 6/21/19 3:22 PM, k...@plushkava.net wrote: > Hi, > > The following script generates a compound command consisting of many > instances of the : command. I have found that it reproducibly induces a > segfault in all versions of bash from 2 onwards. I tested various other > shells - several mo

Re: File descriptor of process substitution unexpectedly persisting

2019-07-01 Thread Chet Ramey
On 6/21/19 2:58 PM, k...@plushkava.net wrote: > However, merely by assigning a variable prior to the loop, though within the > same line, the number will continuously grow: > > $ var=0; while :; do { read; } < <(:); sleep 0.5; printf %s\\n > /proc/self/fd/* | wc -l; done > 6 > 7 > 8 > 9 > 10 >