Open stephane-chazelas opened 11 months ago
This is the reason for bugs like these: https://github.com/ksh93/ksh/blob/4dacec274706dda16201831eb0d5d4ab4ef3af0f/src/cmd/ksh93/sh/lex.c#L1497-L1523
So far, my experiments in that direction have not been successful.
Using braces inside
${ ...; }
command substitution sometimes causes some`{' unmatched
errors:These are OK for some reason:
Quoting the cmdsubst doesn't help:
Escaping/quoting the
{
avoids the error:I guess the brace expansion is done on the output of unquoted command substitution: