Comment 1 for bug 787351

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 787351] [NEW] mitigate bash-ism of novarc.template

2011/5/24 Isaku Yamahata <email address hidden>:
> Public bug reported:
>
> wishlist: novarc.template uses BASH_SOURCE which is very specific to bash.
> It can be mitigated a bit by ${BASH_SOURCE:-$0} so that other bsh-like shell,
> ksh, zsh, dash.

That will only fix it for zsh. For bash, dash and ksh, $0 contains the
name of the command that is currently being executed. novarc is
*sourced*, not execve'd. The fact that $0 works for zsh is a zshism.

I'm ok with the change, I'm just saying. :)

--
Soren Hansen        | http://linux2go.dk/
Ubuntu Developer    | http://www.ubuntu.com/
OpenStack Developer | http://www.openstack.org/