Document local-exported variable change

This is a bit minimal, but I'm not sure how often it should be mentioned.
This commit is contained in:
Fabian Homborg 2017-06-21 17:00:18 +02:00 committed by Kurtis Rader
parent f2a6ae20e5
commit c1ea9c7025

View file

@ -771,6 +771,9 @@ Variables can be explicitly set to be exported with the `-x` or `--export` switc
-# If a variable is not explicitly set to be either exported or not exported and has never before been defined, the variable will not be exported.
-# If a variable has local-scope and is exported, any function called receives a _copy_ of it, so any changes it makes to the variable disappear once the function returns.
-# If a variable has global-scope, it is accessible read-write to functions whether it is exported or not.
\subsection variables-arrays Arrays