Re: Parse error of function definition with here doc in command substitution

2022-10-17 Thread Chet Ramey
On 10/16/22 12:45 PM, D630 wrote: Hi, In version `5.2.0(1)-rc2 (x86_64-pc-linux-gnu)` from Debian, this code ``` _=$( f1() {     c <<-!     ! } f2() {     : } ) ``` results in ``` bash: command substitution: line 15: syntax error near unexpected token `('

Parse error of function definition with here doc in command substitution

2022-10-16 Thread D630
Hi, In version `5.2.0(1)-rc2 (x86_64-pc-linux-gnu)` from Debian, this code ``` _=$( f1() { c <<-! ! } f2() { : } ) ``` results in ``` bash: command substitution: line 15: syntax error near unexpected token `('