Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does {..} expansion using 'bindkey' quoting, but {,} and BRACE_CCL don't quote at all?
- X-seq: zsh-workers 49250
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Marlon Richert <marlon.richert@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Why does {..} expansion using 'bindkey' quoting, but {,} and BRACE_CCL don't quote at all?
- Date: Fri, 6 Aug 2021 02:55:08 +0200
- Archived-at: <https://zsh.org/workers/49250>
- In-reply-to: <CAH+w=7aCFe8ofQTbcz13pK1LGKQ9vDt0bLuavOhtGGBL_2hAFA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDsib=h6_44ZO0CBC-XxbbPi7Wvypi8JKwaRa1uS9uK__w@mail.gmail.com> <CAH+w=7YmBRdW51WA=wY34kz_Si1ScnSOKzvaFPJO-eDGQ4G1kg@mail.gmail.com> <CAHLkEDvmQAN1w5An46hP0_b9dv13om6_Yms3uPmnDOT_CN0uvQ@mail.gmail.com> <CAH+w=7aCFe8ofQTbcz13pK1LGKQ9vDt0bLuavOhtGGBL_2hAFA@mail.gmail.com>
On 8/6/21, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Wed, Aug 4, 2021 at 11:18 PM Marlon Richert <marlon.richert@xxxxxxxxx>
> wrote:
>>
>> I just wish {a..z} didn't use quoting at all. :)
>
> Re-reading the doc for this, {a..z} is guaranteed to produce PRINTABLE
> output, which is not true of the other variations of brace expansion.
If you want to expand these printable representations to the actual
codepoints, you can use (g:ce:) .
>> How would you feel about adding a shell option to make {a..z}
>> unquoted?
>
> Ambivalent. If you're going to set an option anyway, why can't you
> use BRACE_CCL and {a-z} ?
braceccl works on the byte level only so it's not usable for multibyte
codepoints etc.
>> (Or failing that, an option to make all of them
>> $'..'-quoted.)
>
> That, I think not. You've already demonstrated that it's simple to
> add the quoting ... and in what circumstance would you want the brace
> expansion quoted, but the word in which it's embedded, unquoted?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author