Closed lgomez closed 8 years ago
Thanks! I'm not sure if it still works in bash now tho? I think we're missing out on the [0]
?
__dir="$(cd "$(dirname "${BASH_SOURCE:-$0}")" && pwd)"
It does work for me locally when I switch to bash. Did it not work for you?
I haven't tried it yet to be honest, but looking at the code I believe trouble arises when using more sources. [0]
is lost in your pr, meaning for a single source, nothing changes, but for multiple, things start falling apart. I googled a bit and this page seems to illustrate my concern
http://hustoknow.blogspot.nl/2011/01/what-bashsource-does.html
These changes have made this module work for me under zsh and bash. Haven't really tested if changing
DEBUG=*.*
toDEBUG=".*."
had any effect but the #19 seems to be solved by this.