Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 121214

Summary: esearch doesn't handle + and shows weird size
Product: Portage Development Reporter: David Watzke <david>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED INVALID    
Severity: normal CC: david
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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)