Re: for loop with variable

Ray Andrews <[email protected]> Mon, 11 May 2026 11:23:57 -0700
Newsgroups gmane.comp.shells.zsh.user
Message-ID <[email protected]>

On 2026-05-11 11:10, Stephane Chazelas wrote:
> $ echo foo{a-cx-z}bar
> fooabar foobbar foocbar fooxbar fooybar foozbar
Interesting that that can be parsed so tersely.  But I guess if the 
presumption is that there's only single chars there, then 'cx' must be 
'c' and 'x' so there's no confusion.  As you describe it, that syntax is 
both older and better, so what's the use of the '{a..c}' form? Must have 
been invented for a reason.