Bash Parameters and Variables

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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.

Shell Level

Function Level