Bug 208249

Summary: Yum tries to search files in current directory when contents of current directory match the search/list expression
Product: [Fedora] Fedora Reporter: Mayank Jain <majain>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideKeywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-27 12:53:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mayank Jain 2006-09-27 12:16:03 UTC
Description of problem:
Yum tries to search files in current directory when contents of current
directory match the search/list expression

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

How reproducible:
Always

Steps to Reproduce:
1. Create scim-abc in current dir
2. perform "yum remove scim*"  --> considering scim is already installed
3. watch the messages shown by yum
  
Actual results:
Yum look in current dir & expands scim* as wildcard in current dir

Expected results:
remove scim* packages

Additional info:
[root@host182 ~]# yum remove scim* 
Deprecated constant TYPE_INTERFACE during plugin initialization.
Please use TYPE_INTERACTIVE instead.
Loading "installonlyn" plugin
Setting up Remove Process
No Match for argument: scim-cvs
No Packages marked for removal
[root@host182 ~]# ls
Desktop      hi-remington.mim   m17n-lib          nonJunk   si-makuchaku
FcLiveCd     hi-remington.mim~  mbox              packages  si-wijesekera.mim
fld_bug.txt  kadischi-error     MorphousAnalyzer  scim-cvs

Comment 1 Mayank Jain 2006-09-27 12:17:29 UTC
[root@host182 ~]# ls -F
Desktop/     hi-remington.mim   m17n-lib/          nonJunk/   si-makuchaku
FcLiveCd/    hi-remington.mim~  mbox               packages/  si-wijesekera.mim
fld_bug.txt  kadischi-error     MorphousAnalyzer/  scim-cvs/


Comment 2 Mayank Jain 2006-09-27 12:18:44 UTC
Any operation -> search/list/remove/install fails if the expression given ni yum
command matches any file/dir in the current directory.

Comment 3 Mayank Jain 2006-09-27 12:19:27 UTC
s/ni/in

Comment 4 Seth Vidal 2006-09-27 12:48:15 UTC
the shell is expanding out the wildcard.

quote the option or escape the wildcard

yum search scim\*

yum search "scim*"

Comment 5 Mayank Jain 2006-09-27 12:49:53 UTC
Aah... ok, thanks for the clarification :)

Comment 6 Mayank Jain 2006-09-27 12:51:12 UTC
But then why is yum failing to remove scim*?


Comment 7 Seth Vidal 2006-09-27 12:53:16 UTC
b/c your command is expanding out to:

yum remove scim-abc


which doesn't exist.