Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1609 - Inconsistant wildcard behavior in 'emerge search' command.
Summary: Inconsistant wildcard behavior in 'emerge search' command.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-09 02:44 UTC by Michael Gayeski
Modified: 2011-10-30 22:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gayeski 2002-04-09 02:44:27 UTC
Using wildcards along with the 'emerge search' command does not seem to work 
correctly. For example, 'emerge --help' says that 'emerge search "*" will list 
all packages, yet running the command will produce no matching results.

Also, the command 'emerge search "*foo"' creates a traceback error when 
executed, instead of finding all packages ending with foo. Any expression 
ending with a wildcard is correctly parsed.

This was tested on portage ver. 1.8.18, and is reproduceable on my other 
machine.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-04-09 20:47:23 UTC
"*" should be ".*", reassiging to Geert.  Geert, when you have time can you fix
this?
Comment 2 Matt Boehlig 2002-04-23 02:43:01 UTC
 Yes, i can confirm this bug.  emerge crashes and displayes a traceback. 
 
More test cases: 
emerge -s "*""<enter>(bash displayes PS2 prompt)"<enter>  -crash 
emerge -s "*"""     -works 
emerge -s "*"x      -crash, replace x with anything other than a space. 
 
This could also be a security concern.  A properly hacked string could crash emerge and compramize 
the system. 
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-24 09:16:50 UTC
this works in portage-1.9.2
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-24 09:20:12 UTC
never mind -- I did it from /root, so it used all the entries in my root dir as
the search options.  That item should probably be removed from the help
Comment 5 Daniel Robbins (RETIRED) gentoo-dev 2002-04-30 00:25:39 UTC
Will be fixed in 1.9.5