On 4/20/22 3:52 PM, Robert E. Griffith wrote:
`Invisible' variables are variables that have been assigned
attributes but
not values, so they are technically unset.
So what is the practical consequence of them not being visible?
The variable shows as unset when referenced.
Local variables have their own scoping issues that complicate things on
occasion, but it's easy to see with something like this:
myvar="hello"
foo()
{
local myvar
local b=isset
echo "${myvar-unset}"
echo "${b-unset}"
}
foo
You'll get
unset
isset
as output because `myvar' is unset.