Re: ="${!a[@]}" expands incorrectly bash 5.1 and above + patch
From:
Chet Ramey
Subject:
Re: ="${!a[@]}" expands incorrectly bash 5.1 and above + patch
Date:
Fri, 29 May 2026 16:56:17 -0400
User-agent:
Mozilla Thunderbird
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 chet@case.edu http://tiswww.cwru.edu/~chet/