Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: quoting question



On 9/12/23, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Tue, Sep 12, 2023 at 1:23 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
> wrote:
>>
>> Refer workers/51907
>
> Incidentally your patch will also change the way the PS2 prompt
> reports %_ -- for example, it will say it's in a brace expansion even
> when ignorebraces means that brace expansion is disabled.

I think it's completely wrong to do this, it becomes impossible to
write { inside a ${:-here} expansion:
% echo "${:-{{{{}"
<dquote braceparam braceparam braceparam braceparam dquote:~code/zsh>%
% echo "${:-\{\{\{\{}"
<dquote braceparam braceparam braceparam braceparam dquote:~code/zsh>%

And even if it was possible with extra quoting, we can't just break
existing strings that happen to have { in them. { inside "" should be
completely non-special.

-- 
Mikael Magnusson




Messages sorted by: Reverse Date, Date, Thread, Author