4 ms·
Bash does have `typeset -n` (from ksh) which allows shell variables to be passed to a function by reference.
by kps 5y ago
Bash does have `typeset -n` (from ksh) which allows shell variables to be passed to a function by reference.
- cryptonector 5y agoYes, and which gets you Tcl-ish pass by name semantics.
- tomjakubowski 5y agoCool, thanks!