Red Hat Bugzilla – Bug 1215289
bash completion file adds a shell alias for python
Last modified: 2015-05-08 03:27:29 EDT
Description of problem:
While looking through the bash completion file in dnf's git tree  I noticed the following snippet near the top of the file:
if [[ "$( readlink /usr/bin/dnf )" == "dnf-2" ]]; then
This is going to define a shell alias for "python" that can differ from the version of python residing at /usr/bin/python. Needless to say, that is rather dangerous and probably not what that script is intended to do.
Version-Release number of selected component (if applicable):
commit 3dd3693 
It also shouldn't alias dnf - this causes problems when switching from dnf-2 to dnf-3 or vice-versa.
Thanks for the report. The aliases were the intention inside the script.
Now it should not affect the rest of the shell.
*** Bug 1216956 has been marked as a duplicate of this bug. ***
dnf-plugins-core-0.1.7-1.fc22,hawkey-0.5.5-1.fc22,dnf-1.0.0-1.fc22 has been submitted as an update for Fedora 22.
Package dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.7-1.fc22 hawkey-0.5.5-1.fc22 dnf-1.0.0-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-core-0.1.7-1.fc22, hawkey-0.5.5-1.fc22, dnf-1.0.0-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.