|
From: | Arfrever Frehtes Taifersar Arahesis |
Subject: | Re: ${!variable@operator} does not work for variables without values; inconsistencies between present and absent [@] for @A and @a |
Date: | Wed, 19 Feb 2020 23:22:26 +0100 |
> ${variable@A} does not work for scalar variables without values, but > interestingly ${variable[@]@A} works for them. More precisely, ${variable[@]@A} is non-empty, but not exactly correct. > See difference between ${VAR1@A} and ${VAR1[@]@A} below. ${VAR1[@]@A} is: declare -rl VAR1=''" But should be: declare -rl VAR1 As in output of 'declare -p VAR1'. -- Arfrever Frehtes Taifersar Arahesis
[Prev in Thread] | Current Thread | [Next in Thread] |