Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121214 - esearch doesn't handle + and shows weird size
Summary: esearch doesn't handle + and shows weird size
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 12:19 UTC by David Watzke
Modified: 2006-02-17 22:38 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 David Watzke 2006-02-01 12:19:08 UTC
Hi. esearch dvd+rw do not found app-cdr/dvd+rw-tools, but if i esearch only dvd, dvd+rw-tools are between results.. so it doesn't handle +. Next bug is this:

*  app-office/openoffice-bin
      Latest version available: 2.0.1
      Latest version installed: 2.0.1
      Size of downloaded files: 1,544,525 kB
      Homepage:    http://www.openoffice.org/
      Description: OpenOffice productivity suite
      License:     LGPL-2

That size is... wicked. It counts all localizations, or what?
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2006-02-16 15:56:13 UTC
esearch (lime emerge -s) uses a regular expression to match against and + has a special meaning in regular expressions (one char or more), so you'll have to escape it when you want to match it literally.
As for the size, yes, that's due to locales.
Comment 2 David Watzke 2006-02-17 05:10:57 UTC
Yeah, fine. But how to escape it?

root@amd64 ~ [ r11.61G h31.27G p68M s977M | 1/93 0.28 ]
[14:09] # esearch "dvd+rw-tools"
[ Results for search key : dvd+rw-tools ]
[ Applications found : 0 ]

root@amd64 ~ [ r11.61G h31.27G p68M s977M | 1/93 0.28 ]
[14:09] # esearch dvd\+rw-tools
[ Results for search key : dvd+rw-tools ]
[ Applications found : 0 ]

root@amd64 ~ [ r11.61G h31.27G p82M s977M | 1/90 0.33 ]
[14:09] # esearch dvd\+rw\-tools
[ Results for search key : dvd+rw-tools ]
[ Applications found : 0 ]
Comment 3 Paul Varner (RETIRED) gentoo-dev 2006-02-17 08:09:58 UTC
You were on the right track:

'esearch dvd\\+rw-tools' will do what you want.
Comment 4 David Watzke 2006-02-17 12:26:46 UTC
Thanks. Or
esearch "dvd\+rw-tools"
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-02-17 22:38:22 UTC
Try with \\+ (\+ is replaced by the shell with a single + again)