Local variables

suggest change
function 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents