diff options
| author | Alejandro Colomar <alx@kernel.org> | 2023-07-17 22:43:18 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-03-30 12:31:37 +0200 |
| commit | a82917ada0509758ac6d717402858536af3a032d (patch) | |
| tree | ce8bc810a6c9f2f0ef5c7641392613d6b8a2ed0e /man/man3/fnmatch.3 | |
| parent | c47826785d91e9cd8c2957d789e50a50e36833e0 (diff) | |
| download | man-pages-a82917ada0509758ac6d717402858536af3a032d.tar.gz | |
man/: srcfix (\fX => \f[X])
While doing this global change, fix other minor issues found nearby.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/fnmatch.3')
| -rw-r--r-- | man/man3/fnmatch.3 | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/man/man3/fnmatch.3 b/man/man3/fnmatch.3 index 8b8e0be692..28fbdbfe77 100644 --- a/man/man3/fnmatch.3 +++ b/man/man3/fnmatch.3 @@ -77,28 +77,44 @@ case-insensitively. .B FNM_EXTMATCH If this flag (a GNU extension) is set, extended patterns are supported, as introduced by \&'ksh' and now supported by other shells. -The extended format is as follows, with \fIpattern\-list\fR +The extended format is as follows, with +.I pattern\-list being a \&'|' separated list of patterns. .TP -\&'?(\fIpattern\-list\fR)' +.RI \&'?( pattern\-list )' The pattern matches if zero or one occurrences of any of the -patterns in the \fIpattern\-list\fR match the input \fIstring\fR. +patterns in the +.I pattern\-list +match the input +.IR string . .TP -\&'*(\fIpattern\-list\fR)' +.RI \&'*( pattern\-list )' The pattern matches if zero or more occurrences of any of the -patterns in the \fIpattern\-list\fR match the input \fIstring\fR. +patterns in the +.I pattern\-list +match the input +.IR string . .TP -\&'+(\fIpattern\-list\fR)' +.RI \&'+( pattern\-list )' The pattern matches if one or more occurrences of any of the -patterns in the \fIpattern\-list\fR match the input \fIstring\fR. +patterns in the +.I pattern\-list +match the input +.IR string . .TP -\&'@(\fIpattern\-list\fR)' +.RI \&'@( pattern\-list )' The pattern matches if exactly one occurrence of any of the -patterns in the \fIpattern\-list\fR match the input \fIstring\fR. +patterns in the +.I pattern\-list +match the input +.IR string . .TP -\&'!(\fIpattern\-list\fR)' -The pattern matches if the input \fIstring\fR cannot be matched with -any of the patterns in the \fIpattern\-list\fR. +.RI \&'!( pattern\-list )' +The pattern matches if the input +.I string +cannot be matched with +any of the patterns in the +.IR pattern\-list . .SH RETURN VALUE Zero if .I string |
