Global variables

suggest change
var="hello"

function foo(){
    echo $var
}

foo

Will obviously output “hello”, but this works the other way around too:

function foo()  {
    var="hello"
}

foo
echo $var

Will also output “hello”

Feedback about page:

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



Table Of Contents