Print this page
3768 fnmatch(5) is worded poorly

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/fnmatch.5.man.txt
          +++ new/usr/src/man/man5/fnmatch.5.man.txt
↓ open down ↓ 6 lines elided ↑ open up ↑
   7    7  
   8    8  DESCRIPTION
   9    9         The pattern matching notation described below  is used to specify
  10   10         patterns for matching strings in the shell. Historically, pattern
  11   11         matching notation is related to, but slightly different from, the
  12   12         regular expression notation. For this reason, the description of the
  13   13         rules for this pattern matching notation is based on the description of
  14   14         regular expression notation described on the regex(5) manual page.
  15   15  
  16   16     Patterns Matching a Single Character
  17      -       The following patterns matching a single character match a single
  18      -       character: ordinary characters, special pattern characters and pattern
  19      -       bracket expressions. The pattern bracket expression will also match a
  20      -       single collating element.
       17 +       The following patterns match a single character: ordinary characters,
       18 +       special pattern characters and pattern bracket expressions. The pattern
       19 +       bracket expression will also match a single collating element.
  21   20  
  22   21  
  23   22         An ordinary character is a pattern that matches itself. It can be any
  24   23         character in the supported character set except for NUL, those special
  25   24         shell characters that require quoting, and the following three special
  26   25         pattern characters. Matching is based on the bit pattern used for
  27   26         encoding the character, not on the graphic representation of the
  28   27         character. If any character (ordinary, shell special, or pattern
  29   28         special) is quoted, that pattern will match the character itself. The
  30   29         shell special characters always require quoting.
↓ open down ↓ 195 lines elided ↑ open up ↑
 226  225                    effect in the current locale. If the pattern contains an
 227  226                    invalid bracket expression or does not match any existing
 228  227                    filenames or pathnames, the pattern string is left
 229  228                    unchanged.
 230  229  
 231  230  SEE ALSO
 232  231         find(1), ksh(1), fnmatch(3C), regex(5)
 233  232  
 234  233  
 235  234  
 236      -                                March 28, 1995                      FNMATCH(5)
      235 +                                 June 14, 2015                      FNMATCH(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX