Bug 1339757 - dnf command completions are contaminated with other strings
Summary: dnf command completions are contaminated with other strings
Keywords:
Status: CLOSED DUPLICATE of bug 1338504
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-25 19:09 UTC by Michael
Modified: 2016-05-30 11:36 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-30 11:36:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael 2016-05-25 19:09:02 UTC
Description of problem:

The bash completions for dnf commands are contaminated with a bunch of non-command strings, which look like pieces of a diagnostic or deprecation message that has been parsed into potential completions

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

dnf-1.1.9-1.fc23.noarch

How reproducible:

Always

Steps to Reproduce:
1. type 'dnf' plus a space, and press tab twice to get the completions
2. see the nonsense entries mixed into the completions
3.

Actual results:

# dnf 
a                             list
and                           makecache
API                           mark
at                            needs-restarting
autoremove                    not
available                     of
be                            officially
builddep                      only
check-update                  part
clean                         playground
config-manager                Please
copr                          'plugins'
debuginfo-install             provides
distribution-synchronization  reinstall
distro-sync                   release.
DNF                           remove
documentation                 removed
<snip snip>

Expected results:

The completions should only include dnf operations. Here is the result from an old machine with an old (dnf-0.6.4-7.fc21.noarch) version of dnf:

$ dnf 
autoremove           makecache             
check-update         provides              
clean                reinstall             
distro-sync          remove
downgrade            repolist
<snip snip>

Additional info:

Looks like a diagnostic or deprecation message is being misparsed to form the completion list. I'm not sure if this is the fault of dnf; it may be that this should be assigned to bash-completion instead.

Comment 2 Honza Silhan 2016-05-30 11:36:30 UTC
It's fixed in dnf-1.1.9-2

*** This bug has been marked as a duplicate of bug 1338504 ***


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