mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
f2a6ae20e5
commit
c1ea9c7025
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue