[Bug 251775] bsdgrep: egrep regards '{foo}' as invalid regular expression

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 12 06:45:06 UTC 2020


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

--- Comment #3 from Yasuhiro KIMURA <yasu at utahime.org> ---
(In reply to Yuri Pankov from comment #1)

Thanks for explanation. Then please let me ask one more question.

While investigating I also found following two patterns are accepted by gnugrep
but rejected bsdgrep.

* '(foo|)'
* '.{0,256}'

According to re_format(7) both of them are invalid as regular expression. Then
are they also invalid with POSIX standard?

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


More information about the freebsd-bugs mailing list