[Bug 233145] bsdgrep incorrectly matches groups with |

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 11 20:39:35 UTC 2018


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

Yuri Pankov <yuripv at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yuripv at FreeBSD.org

--- Comment #1 from Yuri Pankov <yuripv at FreeBSD.org> ---
Alternations ("|") are ERE feature (see 9.4.7 in
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html), so
you need to run it as:

$ printf "xxx\nyyy\n" | bsdgrep -E 'xxx|yyy'
xxx
yyy

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


More information about the freebsd-bugs mailing list