Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: quoting question
- X-seq: zsh-users 29240
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: quoting question
- Date: Wed, 13 Sep 2023 09:50:42 +0100 (BST)
- Archived-at: <https://zsh.org/users/29240>
- Importance: Normal
- In-reply-to: <CAHYJk3Rw6g55DeM1ZfL+h1JX_TQjGHQA_G-656CJ62=to73PnQ@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> <CAHYJk3Rw6g55DeM1ZfL+h1JX_TQjGHQA_G-656CJ62=to73PnQ@mail.gmail.com>
> On 13/09/2023 02:56 Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> 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.
If there's a significant knock-on effect, we'll certainly have to leave it alone.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author