[Yum-devel] globbing and yum commands

seth vidal skvidal at linux.duke.edu
Fri Mar 2 18:14:31 UTC 2007


On Fri, 2007-03-02 at 12:50 -0500, James Bowes wrote:
> Hi all:
> 
> The behaviour of yum's subcommands wrt globbing is a little hazy, so I'd
> like to propose that we explicitly define a few things. Specifically:
> 
> - all commands should accept globs (and no regexes)
> - if the command argument is not a valid glob, it will be assumed that
> the user wants matches for that string exactly, not strings that contain
> that string.
> 
> This wouldn't really change too much, except for provides/whatprovides
> on filelists (which I suspect is kinda broken anyways), and search.
> Search is kind of special though, so if an invalid glob is supplied, we
> could just wrap it in asterisks.

so if I say

yum search foo

should that match dogfood?

I'd be inclined to say yes, it should, but if I say: yum search " foo "
it wouldn't.

-sv





More information about the Yum-devel mailing list