Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2014 01:28:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 194397] New: Base GNU grep does not handle \s in extended regex
Message-ID:  <bug-194397-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: emaste@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194397-8>