Mixing the two together
suggest changevar="hello"
function foo(){
local var="sup?"
echo "inside function, var=$var"
}
foo
echo "outside function, var=$var"
Will output
inside function, var=sup?
outside function, var=hello
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents