Summary: | esearch doesn't handle + and shows weird size | ||
---|---|---|---|
Product: | Portage Development | Reporter: | David Watzke <david> |
Component: | Tools | Assignee: | 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
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. 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 ] You were on the right track: 'esearch dvd\\+rw-tools' will do what you want. Thanks. Or esearch "dvd\+rw-tools" Try with \\+ (\+ is replaced by the shell with a single + again) |