Re: for loop with variable

Ray Andrews <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <f3b84b6f-93e8-42e6-9bae-5e6faeb9e5ee__22404.8832243838$1778523889$gmane$org@eastlink.ca>

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.
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.