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 49248
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Marlon Richert <marlon.richert@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Why does {..} expansion using 'bindkey' quoting, but {,} and BRACE_CCL don't quote at all?
- Date: Thu, 5 Aug 2021 16:36:10 -0700
- Archived-at: <https://zsh.org/workers/49248>
- In-reply-to: <CAHLkEDvmQAN1w5An46hP0_b9dv13om6_Yms3uPmnDOT_CN0uvQ@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>
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.
> 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} ?
> (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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author