Re: ="${!a[@]}" expands incorrectly bash 5.1 and above + patch
Chet Ramey <[email protected]> Fri, 29 May 2026 16:58:18 -0400
| Newsgroups | gmane.comp.shells.bash.bugs |
|---|---|
| Organization | ITS, Case Western Reserve University |
| Message-ID | <[email protected]> |
On 5/29/26 4:56 PM, Chet Ramey wrote: > 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. At least on the rhs of assignment statements. -- ``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----- wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCahn96gUDAAAAAAAKCRC7WGnwZOp0q0pj AJ9vCpxdDZ9IREUFubn+3OYumzjzIgCfZD3/TcU504IWKBBQCUrlG/G5IJs= =RpwF -----END PGP SIGNATURE-----