bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ${var@A} ${var@a} when var is a nameref


From: Zachary Santer
Subject: Re: ${var@A} ${var@a} when var is a nameref
Date: Sat, 18 Oct 2025 21:25:12 -0400

On Sat, Oct 18, 2025 at 8:49 PM Greg Wooledge <greg@wooledge.org> wrote:
>
> It definitely needs the nameref
> to be present.  Otherwise, you just get:
>
> hobbit:/tmp$ x*y
> bash: x*y: command not found
> hobbit:/tmp$ x[1][2]=3
> bash: x[1][2]=3: command not found

$ declare -p BASH_VERSION
declare -- BASH_VERSION="5.2.37(2)-release"
$ x*y
-bash: no match: x*y
$ x[1][2]=3
-bash: no match: x[1][2]=3
$ ./bash
$ declare -p BASH_VERSION
declare -- BASH_VERSION="5.3.0(1)-maint"
$ x*y
bash: no match: x*y
$ x[1][2]=3
bash: no match: x[1][2]=3

My shell is in POSIX mode, but turning that off doesn't seem to make a
difference.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]