Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: for loop with variable
- X-seq: zsh-users 30658
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Ray Andrews <rayandrews@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: for loop with variable
- Date: Mon, 11 May 2026 20:30:46 +0100
- Archived-at: <https://zsh.org/users/30658>
- In-reply-to: <CAHYJk3QBH0YtN0qPd7yfi6itMS+q=nzdEG4ZiRtMkgSMbNT2jw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: Mikael Magnusson <mikachu@xxxxxxxxx>, Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Ray Andrews <rayandrews@xxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- References: <a94bb2a4-b05c-4e22-97c7-a44ccd957e73@eastlink.ca> <CAN=4vMrPSXyPkSX+bfZ0J8tuyujj-wU5Ly6Ba9073ERNb25p3Q@mail.gmail.com> <agIanvFaYb-0FepP@chazelas.org> <CAHYJk3QBH0YtN0qPd7yfi6itMS+q=nzdEG4ZiRtMkgSMbNT2jw@mail.gmail.com>
2026-05-11 20:50:33 +0200, Mikael Magnusson:
[...]
> Braceccl syntax will a) sort the results for you which you may not
> want, eg {x-za-c} will give the exact same results as the above, b) it
> does not support multibyte at all, c) requires you to setopt braceccl.
> It is a lot of drawbacks to save typing five characters.
[...]
Note that while {1..12} comes from zsh in 1995, the {a..z}
variant was added by bash in 2004, later copied by zsh in 2014
(https://www.zsh.org/mla/users/2014/msg00035.html).
But braceccl is even older. Added in zsh 2.2 from 1992 AFAICT.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author