Bug 789653 - yum update k* doesn't work
Summary: yum update k* doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-12 00:36 UTC by Rolle
Modified: 2014-01-21 23:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-13 15:52:05 UTC
Type: ---


Attachments (Terms of Use)

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*


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