On Sat, Jan 20, 2024, at 2:43 AM, Kaz Kylheku wrote:
> Someone just posted this finding on Stackoverflow:
>
>https://stackoverflow.com/questions/77850130/bash-parse-of-x-y
>
> When brace expansion is adjacent to $$, it doesn't expand.
>
> Try
>
> echo $${a,b}
> echo $$-{a,b}
>
> Documented somewhere? Or bug?
The manual says:
To avoid conflicts with parameter expansion, the string
`${' is not considered eligible for brace expansion, and
inhibits brace expansion until the closing `}'.
https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html
--
vq