it is bash
and what do you mean by local?
if you run a bash script, and have it set vars. they will only live as long as that bash session , when the script exits the vars are 'lost'
I did a bash function, it lives in current session, so if it sets vars, they remain
Code:
foo () {
Name=ANY
Value=Value
}
put that in a file, lets call it func_foo.bash
and source it ( with a . )
Code:
. /path/to/func_foo.bash
echo $Name $Value
foo
echo $Name $Value
one line?
Code:
foo () { Name="ANY" ; Value="Value" }