]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
regex.3: wfix
authorAlejandro Colomar <colomar.6.4.3@gmail.com>
Wed, 14 Oct 2020 12:24:15 +0000 (14:24 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 14 Oct 2020 16:37:33 +0000 (18:37 +0200)
The wording was incorrect:

It stated that 'eflags' may be the OR of one or two of those two flags,
but then a third flag was documented
(which according to the previous wording could not be used?!).
Moreover, the wording also disallowed using 0 (i.e., no flags at all),
which POSIX specifically allows;
I tested the function with no flags and it worked fine for me,
so I guess it was a problem with the documentation,
and not with the implementation itself.

POSIX ref: https://pubs.opengroup.org/onlinepubs/9699919799/

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/regex.3

index 414011d912167d37bc3b3124bca2d3f423d824ee..97a3ff3e5e4ad4734731e5453fb02715600de900 100644 (file)
@@ -135,11 +135,7 @@ are used to provide information regarding the location of any matches.
 .I eflags
 may be the
 .RB bitwise- or
-of one or both of
-.B REG_NOTBOL
-and
-.B REG_NOTEOL
-which cause changes in matching behavior described below.
+of zero or more of the following flags:
 .TP
 .B REG_NOTBOL
 The match-beginning-of-line operator always fails to match (but see the