Summary: | Slocate doesn't handle Posix regexps right | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Shein Alexey <conf> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | rjm40 |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Shein Alexey
2006-05-09 13:04:54 UTC
If glibc is your C library, slocate uses GNU "basic regular expressions" as described in grep(1). These expressions use extensions to the portable POSIX "basic" REs described in regex(7). # slocate -r '\(etc\|home\)' will search for either 'etc' or 'home' in the database. thanks for the explanation resolution: this is a feature ;) (In reply to comment #1) > If glibc is your C library, slocate uses GNU "basic regular expressions" as > described in grep(1). These expressions use extensions to the portable POSIX > "basic" REs described in regex(7). > > # slocate -r '\(etc\|home\)' > will search for either 'etc' or 'home' in the database. > Oops! I really missed that, thanks for the explanation. My email didn't work for about 2 months, so I've just noticed your comment :) Now going reading mans, thanks again! |