Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2018 20:39:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 233145] bsdgrep incorrectly matches groups with |
Message-ID:  <bug-233145-227-BScnUosVVQ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-233145-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-233145-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233145

Yuri Pankov <yuripv@FreeBSD.org> changed:

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

--- Comment #1 from Yuri Pankov <yuripv@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

--=20
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-233145-227-BScnUosVVQ>