mitigate bash-ism of novarc.template

Bug #787351 reported by Isaku Yamahata
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned

Bug Description

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.

Related branches

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/

Thierry Carrez (ttx)
Changed in nova:
assignee: nobody → Isaku Yamahata (yamahata)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Thierry Carrez (ttx) wrote :

@Isaku: is your branch ready to be merged ?

Revision history for this message
Mark McLoughlin (markmc) wrote :

This looks quite stale, so I'm de-assigning. Feel free to pick it up again, though!

Changed in nova:
assignee: Isaku Yamahata (yamahata) → nobody
status: In Progress → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

Actually this was fixed in June 2011

Changed in nova:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.