bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ${var@A} ${var@a} when var is a nameref


From: Chet Ramey
Subject: Re: ${var@A} ${var@a} when var is a nameref
Date: Mon, 20 Oct 2025 16:24:08 -0400
User-agent: Mozilla Thunderbird

On 10/17/25 4:41 PM, Mark March wrote:
Is this enough of a special case to make it different?

Well, to me the @A and @a expansion operators always looked different from all 
the others as they expand to the *attributes* of the variable rather than to a 
function of the variable's *value*.

Sure, but they still act on the target/value of a nameref variable, just
like all the other word expansions.

Namerefs are transparent for get-value/set-value type operations. Should they be transparent for
attribute-focused expansions as well?

Why wouldn't they be transparent for all word expansions? That seems like
fewer special cases.

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]