[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parsing command substitution inside parameter expansion in interacti
From: |
Grisha Levit |
Subject: |
Re: parsing command substitution inside parameter expansion in interactive shell |
Date: |
Tue, 23 May 2023 14:50:10 -0400 |
On Mon, Mar 20, 2023 at 4:59 PM Chet Ramey <chet.ramey@case.edu> wrote:
> Thanks for the report. This is the same thing as
>
> https://lists.gnu.org/archive/html/bug-bash/2021-06/msg00115.html
>
> with the command substitution being embedded in the parameter expansion.
One more similar case when the parameter expansion is quoted:
bash --norc -in <<<$'"${_+$("\n")}"'
bash-5.2$ "${_+$("
bash: command substitution: line 2: unexpected EOF while looking for
matching `"'
> ")}"
bash --norc -in <<<$'"${_+$(:\n)}"'
bash-5.2$ "${_+$(:
bash: command substitution: line 3: unexpected EOF while looking for
matching `)'
> )}"
- Re: parsing command substitution inside parameter expansion in interactive shell,
Grisha Levit <=