Bash scripts are powerful, but with power comes great responsibility. It’s very easy for sloppy or poorly-planned code to do real damage, so it’s a good idea to be careful and practice defensive ...
I was able to narrow all of this down to a silly little script that on the OS version of bash works fine, but using the brew installed version segfaults at line 12 when trying to do the parameter ...