Bash Parameters and Variables: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 3: Line 3:
* [[bash Concepts#bash_Environment_Variables|bash Concepts]]
* [[bash Concepts#bash_Environment_Variables|bash Concepts]]
* [[bash Environment Variables]]
* [[bash Environment Variables]]
=Global Variable=


=<tt>local</tt> Keyword=
=<tt>local</tt> Keyword=

Revision as of 00:47, 27 May 2016

Internal

Global Variable

local Keyword

local must be used in 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.

Shell Level

Function Level