On 10/17/25 3:33 PM, Mark March wrote:
The ${var@A} expansion is defined as follows:The expansion is a string in the form of an assignment statement or declare command that, if evaluated, recreates parameter with its attributes and value.However, if var is a nameref, ${var@A} expands to a declare command for the variable that var references, not for var itself.
Interesting question. In every other word expansion, referencing a nameref
variable performs the resolution and uses the variable the nameref resolves
to. The only places you can get to the nameref directly are `declare' and
`unset'. Is this enough of a special case to make it different?
--
``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
Description: OpenPGP digital signature
