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. POSIX defines them as being the same, I think the F_C == F_I syntax does this perfect justice without being really wordy for no good reason. Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx> --- man/man3/fnmatch.3 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/man/man3/fnmatch.3 b/man/man3/fnmatch.3 index 978163a..0501914 100644 --- a/man/man3/fnmatch.3 +++ b/man/man3/fnmatch.3 @@ -68,8 +68,8 @@ .SH DESCRIPTION This flag is mainly for the internal 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 +.BR FNM_CASEFOLD " == " FNM_IGNORECASE +If this flag is set, the pattern is matched case-insensitively. .TP .B FNM_EXTMATCH @@ -123,11 +123,15 @@ .SH STANDARDS .BR fnmatch () POSIX.1-2008. .TP +.BR FNM_CASEFOLD ", " FNM_IGNORECASE +POSIX.1-2024. +Many systems have shipped +.B FNM_CASEFOLD +prior. +.TP .B FNM_FILE_NAME .TQ .B FNM_LEADING_DIR -.TQ -.B FNM_CASEFOLD GNU. .SH HISTORY .TP -- 2.39.2
Attachment:
signature.asc
Description: PGP signature