Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: quoting question
- X-seq: zsh-users 29236
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: quoting question
- Date: Wed, 13 Sep 2023 03:56:37 +0200
- Archived-at: <https://zsh.org/users/29236>
- In-reply-to: <CAH+w=7bcqLc+2tRtbuQqYBZyM4Fwe25AFBbp6q+-6Vz9OWzT-w@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CA+rB6GK9_BvEWc7LzO46rTdBx9L4aBP1YPgaCSruP-mG5wQdLA@mail.gmail.com> <8218b46632e67c16b18187612d0b0d51491cd30b.camel@ntlworld.com> <CAH+w=7YM_pc_LutJOfsYQnPs=QXjDfjHJy=7aDqh7hVU5cM6-g@mail.gmail.com> <CAH+w=7bcqLc+2tRtbuQqYBZyM4Fwe25AFBbp6q+-6Vz9OWzT-w@mail.gmail.com>
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