Comment 10 for bug 376425

Revision history for this message
Garrett Holmstrom (gholms) wrote :

Lovely. $_ changes based on the environment. At least ${BASH_SOURCE:-$0} will make it work for bash and zsh. It doesn't fix it for dash or ksh, but it is still an improvement over what we have now.

It looks like that's what the Nova people are doing, too: https://bugs.launchpad.net/nova/+bug/787351