mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 22:21:15 -03: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:
committed by
Kurtis Rader
parent
f2a6ae20e5
commit
c1ea9c7025
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user