[Rdo-list] pythonclients completion scripts raise errors on zsh

Stefano Zilli stefano.zilli at cern.ch
Mon Jan 27 14:59:11 UTC 2014

Yes, it's about RDO/epel-6 Havana.


-----Original Message-----
From: Jakub Ruzicka [mailto:jruzicka at redhat.com] 
Sent: 27 January 2014 15:56
To: Kashyap Chamarthy; Stefano Zilli
Cc: rdo-list at redhat.com
Subject: Re: [Rdo-list] pythonclients completion scripts raise errors on zsh

On 27.1.2014 15:45, Kashyap Chamarthy wrote:
> [Adding Jakub Ruzicka who intially pointed this issue.]
> On 01/27/2014 04:21 PM, Stefano Zilli wrote:
>> Hello,
>> We are currently testing Havana python-{cinder,nova,keystone}client rpms and we noticed that completion files have been moved to /etc/profile.d.
>> This is causing the following errors in zsh shells and, as a consequence, it's blocking the deployment in production.
>> /etc/profile.d/cinder.sh:15: command not found: complete
>> /etc/profile.d/keystone.sh:27: command not found: complete
>> /etc/profile.d/nova.sh:27: command not found: complete
>> Wouldn't be better to have some kind of guard at the beginning of those files like "[ -z "$BASH_VERSION" ] && return" to avoid the execution on non-bash shells?
> Right, sane thing to do is to place them in /etc/bash_completion.d, 
> which requires bash-completion package, to avoid such errors.

For RDO/Fedora, these are put into /etc/bash_completion.d, but since RHEL doesn't have bash-completion package, they're put to /etc/profile.d for RDO/epel-6.

I planned to move them to /etc/bash-completion.d with RHEL 7 which will include bash-completion package but if this is causing troubles already, I can make even epel-6 RDO packages use bash-completion because RDO already requires epel which provides bash-completion.

This is about RDO Havana, right?


More information about the dev mailing list