Bash Parameters and Variables: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
=<tt>local</tt> Keyword= | =<tt>local</tt> Keyword= | ||
<tt>local</tt> | The <tt>local</tt> keyword designates a local variable. Local variables can only be declared inside a function. | ||
=<tt>export</tt>= | =<tt>export</tt>= |
Revision as of 00:48, 27 May 2016
Internal
Global Variable
local Keyword
The local keyword designates a local variable. Local variables can only be declared inside a function.
export
Scope
All variables declared in a shell are visible inside the functions executed within that shell and inside functions invoked from function invoked from the shell, recursively.