When logging in to a rawhide machine, I get: /etc/profile.d/polkit-bash-completion.sh:121: command not found: complete /etc/profile.d/polkit-bash-completion.sh:122: command not found: complete My shell is zsh, which also reads /etc/profile.d/*.sh but has a different completion mechanism. I think there's a directory "/etc/bash_completion.d" where this kind of thing would be more appropriate.
Maybe it's better to check in the completion script if the shell used is bash (I think /etc/bash_completion.d is a RH/Fedora-ism)...
That might be better for PK upstream, but it seems like if Fedora has this, we should use it as intended in our distro, and push /etc/bash_completion.d to bash-completion upstream (is that a dead project? :-()
*** Bug 426071 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > Maybe it's better to check in the completion script if the shell used is bash (I > think /etc/bash_completion.d is a RH/Fedora-ism)... In Rawhide now http://koji.fedoraproject.org/koji/taskinfo?taskID=299182
Yep, definitely fixed for me with the latest rawhide push.
Though I still contend we should put this in /etc/bash_completion.d in Fedora. This way users can avoid bash completion if they do not want it by uninstalling the bash-completion package which would then remove the hooks that traverse that directory. It seems strange that PolicyKit would be the only thing that would get completion on certain installs. Other packages such as PackageKit and rpmlint already install scripts to /etc/bash_completion.d and it would be great if we did too.