Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: for loop with variable





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.





Messages sorted by: Reverse Date, Date, Thread, Author