{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+:
On Thu, Mar 6, 2025, at 9:06 PM, Kaz Kylheku wrote:
> But Bash cannot do this. The reason is that brace expansion is already
> a deviation from POSIX.
POSIX.1-2024 does permit brace expansion syntax as an extension,
although it doesn't use the term "brace expansion" or prescribe any
specific seman
On 2025-03-06 11:58, Lawrence Velázquez wrote:
> On Thu, Mar 6, 2025, at 1:48 PM, microsuxx wrote:
>> {0} is no expansion
>> {0,} is
>> it must be 2+
>
> And this is documented. It is not a bug.
>
> A correctly-formed brace expansion must contain unquoted
> opening and closing braces
On Thu, Mar 6, 2025, at 1:48 PM, microsuxx wrote:
> {0} is no expansion
> {0,} is
> it must be 2+
And this is documented. It is not a bug.
A correctly-formed brace expansion must contain unquoted
opening and closing braces, and at least one unquoted comma
or a valid seque