summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2006-07-15 01:37:13 +0000
committerMarius Mauch <genone@gentoo.org>2006-07-15 01:37:13 +0000
commit11b879722b7a289047c29ef35e897ad38da3852b (patch)
tree5e4d5936c3e7aa9de3dd0215d7fdf2fa178154f9 /man
parentdisable regular expressions for search by default (diff)
downloadportage-idfetch-11b879722b7a289047c29ef35e897ad38da3852b.tar.gz
portage-idfetch-11b879722b7a289047c29ef35e897ad38da3852b.tar.bz2
portage-idfetch-11b879722b7a289047c29ef35e897ad38da3852b.zip
update search docs
svn path=/main/trunk/; revision=3877
Diffstat (limited to 'man')
-rw-r--r--man/emerge.117
1 files changed, 9 insertions, 8 deletions
diff --git a/man/emerge.1 b/man/emerge.1
index 7773fdff..f27e6c0a 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -152,14 +152,15 @@ to do, then portage will exit with a message and a success condition.
.TP
.BR "\-\-search " (\fB\-s\fR)
Searches for matches of the supplied string in the portage tree.
-The \-\-search string is a regular expression. For example, \fBemerge
-\-\-search "^kde"\fR searches for any package whose name starts with "kde";
-\fBemerge \-\-search "gcc$"\fR searches for any package that ends with
-"gcc"; \fBemerge \-\-search "office"\fR searches for any package that
-contains the word "office". If you want to include the category into the
-search string, prepend an @: \fBemerge --search "@^dev-java.*jdk"\fR.
-If you want to search the package descriptions as well, use the
-\fB\-\-searchdesc\fR action.
+By default emerge uses a case-insensitive simple search, but you can
+enable a regular expression search by prefixing the search string with %.
+For example, \fBemerge \-\-search "%^kde"\fR searches for any package whose
+name starts with "kde"; \fBemerge \-\-search "%gcc$"\fR searches for any
+package that ends with "gcc"; \fBemerge \-\-search "office"\fR searches for
+any package that contains the word "office". If you want to include the
+category into the search string, prepend an @: \fBemerge --search
+"%@^dev-java.*jdk"\fR. If you want to search the package descriptions as well,
+use the \fB\-\-searchdesc\fR action.
.TP
.BR "\-\-searchdesc " (\fB\-S\fR)
Matches the search string against the description field as well as