Bug 208249 - Yum tries to search files in current directory when contents of current directory match the search/list expression
Summary: Yum tries to search files in current directory when contents of current direc...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-27 12:16 UTC by Mayank Jain
Modified: 2014-01-21 22:55 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-27 12:53:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.




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