markjgsmith

Linkblog

How to pass bash arrays as function args - I’ve been having issues with this recently, the issue arises because bash always expands the variable, turns out in bash 4.3 it’s possible to pass by reference, also works for associative arrays - Still quite a lot to have to think about when doing something that is trivial in other languages, anyway at least it’s possible, maybe this new method will mean I stop instinctively avoiding arrays because until now they have been very difficult for me to handlestackoverflow.com #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.