Re: using a variable from global scope or checking whether it is local t
From:
Koichi Murase
Subject:
Re: using a variable from global scope or checking whether it is local to some scope
Date:
Fri, 20 Oct 2023 09:50:58 +0900
> Unfortunately, we cannot use `declare -g gvar' to get the value in the
> global environment, [...]
Sorry, this is a typo of `declare -p -g gvar'. Anyway, `declare'
cannot be used to get the hidden value in the global context.
--
Koichi