Is there a POSIX Compliant way to limit the scope of a variable to the function it is declared in? i.e.:
Testing() { TEST=\"testing\" } Testing echo \"T
I believe the closest thing would be to put the function body inside a subshell.
E.g. try this
foo() { ( x=43 ; echo $x ) } x=42 echo $x foo echo $x