[Bug 194397] New: Base GNU grep does not handle \s in extended regex

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 16 01:28:07 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194397

            Bug ID: 194397
           Summary: Base GNU grep does not handle \s in extended regex
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: emaste at freebsd.org

\s should match whitespace but does not:

FreeBSD 11.0-CURRENT from Sep. 21

joule% echo 'a b' | /usr/bin/grep -E '^a\sb'
joule%
joule% /usr/bin/grep --version
grep (GNU grep) 2.5.1-FreeBSD

GNU grep package works:

joule% echo 'a b' | /usr/local/bin/grep -E '^a\sb'
a b
joule% /usr/local/bin/grep --version              
/usr/local/bin/grep (GNU grep) 2.20

BSD grep works:

echo 'a b' | /usr/bin/bsdgrep -E '^a\sb'

joule% /usr/bin/bsdgrep --version
bsdgrep (BSD grep) 2.5.1-FreeBSD

BSD grep and base GNU grep both link against /usr/lib/libgnuregex.so.5

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list