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/
{0} is no expansion
{0,} is
it must be 2+
On Thu, Mar 6, 2025, 7:40 PM Trond Endrestøl via Bug reports for the GNU
Bourne Again SHell wrote:
> $ bash --version
> GNU bash, version 5.2.37(0)-release (amd64-portbld-freebsd14.1)
> Copyright (C) 2022 Free Software Foundation, Inc.
> License GPLv3+:
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