On 2/20/20 7:34 PM, Arfrever Frehtes Taifersar Arahesis wrote:
>> Same answer as previously: maybe it should display the attributes
>> even thought the variable is unset.
>
> Yes, I think that @A, [@]@A, @a and [@]@a should work for unset variables.
OK, we'll try that and see how it works.
--
On 2/23/20 11:36 AM, pepa65 wrote:
> On 23/02/2020 23.27, Chet Ramey wrote:
>> On 2/21/20 3:31 AM, pepa65 wrote:
>>> By the way, it seems that `local -p var` doesn't work like 'declare -p
>>> var` even though `help local` suggests it should.
>>
>> How so? Do you mean that declare -p var in a functi
On 23/02/2020 23.27, Chet Ramey wrote:
> On 2/21/20 3:31 AM, pepa65 wrote:
>> By the way, it seems that `local -p var` doesn't work like 'declare -p
>> var` even though `help local` suggests it should.
>
> How so? Do you mean that declare -p var in a function will show different
> variables?
See
On 2/21/20 3:31 AM, pepa65 wrote:
> On 21/02/2020 02.37, Chet Ramey wrote:
>> It's unset because it doesn't have a value, but it retains the `local'
>> attribute so it stays local if subsequently assigned one.
>
> Is there any reason the local attribute cannot be unset? If it would be
> possible t