Bug 1339757

Summary: dnf command completions are contaminated with other strings
Product: [Fedora] Fedora Reporter: Michael <mdunphy>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-30 11:36:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***