bug-bash
[Top][All Lists]
Advanced

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

Re: ${!variable@operator} does not work for variables without values; in


From: Chet Ramey
Subject: Re: ${!variable@operator} does not work for variables without values; inconsistencies between present and absent [@] for @A and @a
Date: Thu, 20 Feb 2020 15:11:51 -0500

> On 2/19/20 4:03 PM, Arfrever Frehtes Taifersar Arahesis wrote:
> 
> > However neither ${variable@A} nor ${variable[@]@A} works for arrays
> > without values.
> 
> So you mean for unset variables, correct? Since the array variables
> haven't been assigned a value, they are unset, like VAR3 in your
> script.

I suppose the question is whether or not to display the command that would
restore the variable with its attributes and not its value. That's a legit
question.


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



reply via email to

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