If this flag is set, a leading period in string has to be matched exactly by a period in pattern. A period is considered to be leading if it is the first character in string, or if both FNM_PATHNAME is set and the period immediately follows a slash.

If this flag (a GNU extension) is set, the pattern is considered to be matched if it matches an initial segment of string which is followed by a slash. This flag is mainly for the internal use of glibc and is implemented only in certain cases.

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 pattern-list being a '|' separated list of patterns.

'?(pattern-list)'

The pattern matches if zero or one occurrences of any of the patterns in the pattern-list match the input string.

'*(pattern-list)'

The pattern matches if zero or more occurrences of any of the patterns in the pattern-list match the input string.

'+(pattern-list)'

The pattern matches if one or more occurrences of any of the patterns in the pattern-list match the input string.

'@(pattern-list)'

The pattern matches if exactly one occurrence of any of the patterns in the pattern-list match the input string.

'!(pattern-list)'

The pattern matches if the input string cannot be matched with any of the patterns in the pattern-list.

This page is part of release 4.16 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.