3 ms·
As stated: posix compliant functions with local variables can be done with something like: foo () ( x="hello"; echo $x ) because this creates a subshell.
by rackjack 5y ago
As stated: posix compliant functions with local variables can be done with something like:
foo () ( x="hello"; echo $x )
because this creates a subshell. Fun!