Re: ="${!a[@]}" expands incorrectly bash 5.1 and above + patch

Chet Ramey <[email protected]> Fri, 29 May 2026 16:56:17 -0400
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
On 5/24/26 6:47 AM, Emanuele Torre wrote:

> I will point out that this patch also changes the behaviour of  [@]@k
> in assignments, and maybe also that of some other @OP expansions, to
> one which I would think is more correct:

It changes the expansion of quoted $@ in contexts where word splitting
doesn't take place.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCahn9cQUDAAAAAAAKCRC7WGnwZOp0q7gw
AJ0Qsmm4TDoHt+OK3NcOuhBLJVZY0gCgi0T17vePsxzfD4Dg9A3/ygyjN5s=
=bwjh
-----END PGP SIGNATURE-----