Re: Degenerate case in brace expansion.

2025-03-10 Thread Chet Ramey
On 3/8/25 3:05 PM, Kaz Kylheku wrote: But: $ echo {a..{z,y}} a..z a..y Is this documented? I would expect it to produce {a..z} {a..y} As fate would have it, I fixed this case about a month ago after a separate conversation. -- ``The lyf so short, the craft so long to lerne.'' - C

Re: Degenerate case in brace expansion.

2025-03-08 Thread Lawrence Velázquez
On Sat, Mar 8, 2025, at 3:05 PM, Kaz Kylheku wrote: > > $ echo {a..{z,y}} > a..z a..y > > Is this documented? I would expect it to produce > > {a..z} {a..y} This is fixed in the devel branch: $ git -C ~/src/bash checkout -q c3ca11424d2ae66cafa2f931b008dfb728e209a5 $ { ~/src/

Degenerate case in brace expansion.

2025-03-08 Thread Kaz Kylheku
Hi all, $ echo {a..zz} {a..zz} Right; the sequence is not well-formed according, and so this is not brace syntax; the syntax stays intact as verbatim text, braces and all. But: $ echo {a..{z,y}} a..z a..y Is this documented? I would expect it to produce {a..z} {a..y} on the hypot