help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]