|
| From: | Chet Ramey |
| Subject: | Re: [BUG] Associative array initial reference name is made available in another context |
| Date: | Mon, 3 Jul 2023 08:59:29 -0400 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
On 7/2/23 9:04 AM, Top Dawn wrote:
What makes you think so? Variables are always visible in invoked functions, unless you shadow them using local/declare/typeset.Thank you very much for this information, I didn't know invoked functions inherited their parent functions variables.
This is known as dynamic scoping. There is text in the manual describing it.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |