On Fri, Jul 12, 2024 at 03:48:01PM GMT, наб wrote: > Every system I looked at already had FNM_CASEFOLD, > so calling it "GNU" is misleading at best; > Solaris (and the illumos gate) call it FNM_IGNORECASE > but also provide FNM_CASEFOLD as an alias. > > Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx> > --- Patch applied. Thanks! Cheers, Alex > man/man3/fnmatch.3 | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > > diff --git a/man/man3/fnmatch.3 b/man/man3/fnmatch.3 > index 978163a..ef318d7 100644 > --- a/man/man3/fnmatch.3 > +++ b/man/man3/fnmatch.3 > @@ -69,7 +69,9 @@ .SH DESCRIPTION > use of glibc and is implemented only in certain cases. > .TP > .B FNM_CASEFOLD > -If this flag (a GNU extension) is set, the pattern is matched > +.TQ > +.BR FNM_IGNORECASE " (same as " FNM_CASEFOLD ) > +If this flag is set, the pattern is matched > case-insensitively. > .TP > .B FNM_EXTMATCH > @@ -123,16 +125,22 @@ .SH STANDARDS > .BR fnmatch () > POSIX.1-2008. > .TP > +.B FNM_CASEFOLD > +.TQ > +.B FNM_IGNORECASE > +POSIX.1-2024. > +.TP > .B FNM_FILE_NAME > .TQ > .B FNM_LEADING_DIR > -.TQ > -.B FNM_CASEFOLD > GNU. > .SH HISTORY > .TP > .BR fnmatch () > POSIX.1-2001, POSIX.2. > +.TP > +.B FNM_CASEFOLD > +has been available on many systems even before POSIX.1-2024. > .SH SEE ALSO > .BR sh (1), > .BR glob (3), > -- > 2.39.2 -- <https://www.alejandro-colomar.es/>
Attachment:
signature.asc
Description: PGP signature