CVSROOT:        /cvs
Module name:    src
Changes by:     mart...@cvs.openbsd.org 2016/05/25 23:46:44

Modified files:
        lib/libc/regex : engine.c regex.3 

Log message:
Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.
The new code sees this combination as a continuation of string at offset
pmatch[0].rm_so, instead of a new string which starts at that offset.
This change fixes a search quirk in vi and is needed for upcoming fixes in
ed/sed/vi.

This new behaviour is also used in gnu regex.

Lots of help from schwarze@
Manpage bits by schwarze@
OK schwarze@ and millert@

Reply via email to