Re: for loop with variable

Stephane Chazelas <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <agItNpunHGQV330I__41085.8539443993$1778527904$gmane$org@chazelas.org>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.