Bug 208249 - Yum tries to search files in current directory when contents of current directory match the search/list expression
Yum tries to search files in current directory when contents of current direc...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-27 08:16 EDT by Mayank Jain
Modified: 2014-01-21 17:55 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-09-27 08:53:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mayank Jain 2006-09-27 08:16:03 EDT
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 08:17:29 EDT
[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 08:18:44 EDT
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 08:19:27 EDT
s/ni/in
Comment 4 Seth Vidal 2006-09-27 08:48:15 EDT
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 08:49:53 EDT
Aah... ok, thanks for the clarification :)
Comment 6 Mayank Jain 2006-09-27 08:51:12 EDT
But then why is yum failing to remove scim*?
Comment 7 Seth Vidal 2006-09-27 08:53:16 EDT
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.