[Help-bash] How to show the global status of a variable?
From:
Peng Yu
Subject:
[Help-bash] How to show the global status of a variable?
Date:
Thu, 13 Dec 2018 00:24:41 -0600
Hi,
The -p option does not show whether a variable is global or local. Is
there a function that can show such information? Thanks.
$ declare -g x
$ declare -p x
declare -- x
--
Regards,
Peng
[Prev in Thread]
Current Thread
[Next in Thread]
[Help-bash] How to show the global status of a variable?,
Peng Yu<=