Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Dec 2020 07:14:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251775] bsdgrep: egrep regards '{foo}' as invalid regular expression
Message-ID:  <bug-251775-227-mTSa8yjvLW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251775-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-251775-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=3D251775

--- Comment #4 from Yuri Pankov <yuripv@FreeBSD.org> ---
(In reply to Yasuhiro KIMURA from comment #3)
As a matter of fact, yes:

* '(foo|)':
----------------------------------------------------------------------
|
    The vertical-line is special except when used in a bracket expression. A
vertical-line appearing first or last in an ERE, or immediately following a
vertical-line or a left-parenthesis, or immediately preceding a
right-parenthesis, produces undefined results.
----------------------------------------------------------------------

* '.{0,256}':
We have RE_DUP_MAX defined to 255 (see /usr/include/limits.h).


For reference:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html

--=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-251775-227-mTSa8yjvLW>