Re: Parameter transformation `@A` on array member

Chet Ramey <[email protected]> Mon, 16 Mar 2026 10:47:16 -0400
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
On 3/15/26 8:19 AM, A4-Tacks wrote:

> Bash Version: 5.3
> Patch Level: 9
> Release Status: release
> 
> Description:
>       For the array member `${x[1]@A}`, the output indicates that the member is an array
> 
> Repeat-By:
>       $ x=(a b)
>       $ echo "${x[1]@A}"
>       declare -a x='b'
>       $ # Expect like `declare x[1]='b'`

This should probably be an error.

-- 
``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-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCabgX9AUDAAAAAAAKCRC7WGnwZOp0q9VF
AJ9qeVoYDj8NJtz36dRxkT1fsyh6CgCfQqELlWUSr9OlsjQWfltO74Q2Pns=
=Z4qV
-----END PGP SIGNATURE-----