Summary: | sys-apps/grep-2.5.1a-r1 behaves badly when there is an '=' character in the regex | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | David Flogeras <dflogeras2> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | truedfx |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
David Flogeras
2007-06-19 14:05:29 UTC
\s matches the lowercase letter s. To match a space character, use [[:space:]] or list the specific literal characters between [ and ]. There is no mention in the documentation of any special behaviour for \s. If Fedora's grep behaves differently, maybe they patched it, but a manually compiled grep without any patches behaves the same way for me as Gentoo's grep does. And the reason \s*gentoo\s*=* does match your string is because it matches just "gentoo", since both the trailing letters 's' and the = are optional. |