Bug 789653

Summary: yum update k* doesn't work
Product: [Fedora] Fedora Reporter: Rolle <rolle.hoffmann>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: ffesti, james.antill, maxamillion, pmatilai, tla, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-13 15:52:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Rolle 2012-02-12 00:36:11 UTC
Description of problem:
When I want to update with yum on the console, so I must check if some directories or files are in the current directory.
I have only a slow mobile broadband connection to the internet that larger downloads are a big task for me and the delta mechanism of fedora-updating is perfect for me. After I check which updates are available I choose which are most important for me to update it now and the others later. And here is little annoying bug.
The selective updating is only functional when there is no directory or file in the current directory which has the same pattern-matching.
An example:
The "kernel"-package is an update-package.
I use "yum update k*". This is functionally so long as no directory and no file with "k*" is in the current directory.

Version-Release number of selected component (if applicable):
Fedora 16, yum 3.4.3

How reproducible:
every time

Steps to Reproduce:
1. su
2. yum update-check
3. choose one update-package, of the available updates (for example: "kernel"
4. mkdir k
5. yum update k*
(6. to remove the temporarly created directory: "rmdir k")
  
Actual results:
this aborted with an error, that the package "k" isn't available

Expected results:
the update-package "kernel" gets downloaded and installed

Additional info:
This error happens with every pattern (like for instance "telepathy"-package -> mkdir test -> yum update te* -> and so on)

Comment 1 Zdeněk Pavlas 2012-02-13 15:52:05 UTC
This is a feature of the shell, not yum.  Just use some quoting to prevent the pattern expansion BEFORE it's passed to yum.

$ echo T*
TEST
$ echo "T*"
T*
$ echo 'T*'
T*
$ echo T\*
T*