[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parse error of function definition with here doc in command substitu
From: |
Chet Ramey |
Subject: |
Re: Parse error of function definition with here doc in command substitution |
Date: |
Mon, 17 Oct 2022 10:07:07 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 |
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 `('
bash: command substitution: line 15: `}function f2 () '
Thanks for the report. This will be fixed in the next devel branch push.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/