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.
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. :)
-- linux2go. dk/ www.ubuntu. com/ www.openstack. org/
Soren Hansen | http://
Ubuntu Developer | http://
OpenStack Developer | http://