|
| From: | Peng Yu |
| Subject: | Is there a good way to tell the difference between a variable declared in a function then a variable declared outside a function? |
| Date: | Sat, 29 Aug 2020 18:18:36 -0500 |
Hi, `declare -p` can tell whether a variable is declared. But it can not tell whether the variable is declared with the current function or outside the current function. Is there a way to do so? Thanks. -- Regards, Peng
| [Prev in Thread] | Current Thread | [Next in Thread] |