[Bug 291172] regexp.h routines behave differently for my program and in the base grep

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 23 Nov 2025 11:29:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291172

Konstantin Belousov <kib@FreeBSD.org> changed:

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

--- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> ---
I beleieve that:
1. '+' must not be escaped by backslash, it becomes ordinary character to match
2. '+' only works as metasymbol for extended regexps, so you need REG_EXTENDED

BTW, why did you specified literal 4 as flag for regexec?

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