This one took me forever to figure out, so documenting it here in the hopes I’ll remember it now. ;] If you have a function that is sourced from a bash script, it’s hard to debug because you can’t just do the usual {bash}bash -x script.sh{/bash} thing – all that will do is run the…