Bug 1043159

Summary: selective failure of yum list command
Product: [Fedora] Fedora Reporter: Steve <lance.list.7>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, jzeleny, packaging-team-maint, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-16 08:00:24 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:
Attachments:
Description Flags
output of yum list command to show error none

Description Steve 2013-12-14 12:56:21 UTC
Description of problem:
yum list kde* command fails whereas yum list gnom* succeeds

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


How reproducible:
every time on selective versions of the command

Steps to Reproduce:
1. yum list kde*

Actual results:
# yum list kde*
Loaded plugins: fastestmirror, priorities, versionlock
Loading mirror speeds from cached hostfile
 * fedora: mirror.iprimus.com.au
 * rpmfusion-free: rpmfusion.mirror.uber.com.au
 * rpmfusion-free-updates: rpmfusion.mirror.uber.com.au
 * rpmfusion-nonfree: rpmfusion.mirror.uber.com.au
 * rpmfusion-nonfree-updates: rpmfusion.mirror.uber.com.au
 * updates: mirror.iprimus.com.au
Error: No matching Packages to list

Expected results:
# yum list kde*
output with list of packages starting kde

Additional info:
yum has been reinstalled
yum clean metadata has been run

Comment 1 Steve 2013-12-14 13:02:28 UTC
Created attachment 836643 [details]
output of yum list command to show error

Comment 2 Jan Zeleny 2013-12-16 08:00:24 UTC
Most likely an escaping issue - bash expands the asterisk before it reaches yum. That means if you have files in your $CWD that start with "kde", their names will be given as arguments to yum instead of the asterisk.

Comment 3 Steve 2013-12-17 01:17:56 UTC
The bash expansion explanation is not consistent with the evidence (see the attachment for details) as 
yum list gno*
yum list ker*
do give an appropriate output as the wild card search includes the not installed, but available packages
whereas  
yum list kde*
in the attachment reports as error
further /etc/bash_completion.d/yum-utils.bash
may play a part.

claim it as part of the metadata and a corruption there and leave this as closed.