Bug 2223324 - dnf bash completions only work if the command is "dnf5"
Summary: dnf bash completions only work if the command is "dnf5"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kolarik
QA Contact:
URL:
Whiteboard:
: 2267668 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-17 11:27 UTC by Richard W.M. Jones
Modified: 2024-11-12 08:30 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-12 08:30:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2023-07-17 11:27:18 UTC
Description of problem:

dnf5 bash completions only work if you use the "dnf5" version of
the command (not "dnf", the usual alias).  eg:

$ dnf5 install bas<TAB>
basesystem       bash-argsparse   bash-doc         
basez            bash-completion  bashmount        
bash             bash-devel       bastet   

$ dnf install bas<TAB>
(nothing is printed)

The reason is because /usr/share/bash-completion/completions/dnf5
references the command name as "dnf5", see the last line of this file.

Version-Release number of selected component (if applicable):

dnf5-0:5.0.15-4.fc39.x86_64

How reproducible:

100%

Steps to Reproduce:

(see above)

Comment 1 Fedora Release Engineering 2023-08-16 07:19:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 2 Jan Kolarik 2024-03-06 05:54:44 UTC
*** Bug 2267668 has been marked as a duplicate of this bug. ***

Comment 3 Jan Kolarik 2024-04-02 07:24:46 UTC
Fixes have been submitted upstream:
- dnf:  https://github.com/rpm-software-management/dnf/pull/2070
- dnf5: https://github.com/rpm-software-management/dnf5/pull/1350

Comment 4 Aoife Moloney 2024-11-08 10:55:53 UTC
This message is a reminder that Fedora Linux 39 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '39'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 39 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Richard W.M. Jones 2024-11-12 08:30:39 UTC
Works for me in F42.


Note You need to log in before you can comment on or make changes to this bug.