Local variables
suggest changefunction foo() {
local var
var="hello"
}
foo
echo $var
Will output nothing, as var is a variable local to the function foo, and its value is not visible from outside of it.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents