@@ -544,15 +544,35 @@ a directory</td></tr>
544544</table >
545545 <p >The <code class =" directive" >IndexIgnore</code > directive adds to the
546546 list of files to hide when listing a directory. <var >File</var > is a
547- shell-style wildcard expression or full
548- filename. Multiple IndexIgnore directives add
549- to the list, rather than replacing the list of ignored
550- files. By default, the list contains <code >.</code > (the current
551- directory).</p >
547+ filename or pattern which may contain the <code >?</code > and
548+ <code >*</code > wildcard characters. <code >?</code > matches any
549+ single character, and <code >*</code > matches any sequence of
550+ characters, including an empty sequence. Multiple IndexIgnore
551+ directives add to the list, rather than replacing the list of
552+ ignored files. By default, the list contains <code >.</code > (the
553+ current directory).</p >
552554
553555 <pre class =" prettyprint lang-config" >IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t</pre >
554556
555557
558+ <p >If <var >File</var > contains a <code >/</code > character, only
559+ the portion after the last <code >/</code > is used for matching
560+ against filenames. For example, <code >*/.??*</code > is equivalent
561+ to <code >.??*</code >.</p >
562+
563+ <div class =" note" ><h3 >Differences from shell wildcard patterns</h3 >
564+ <p >The wildcard matching used here is <em >not</em > the same as
565+ shell-style (glob) filename pattern matching. In particular:</p >
566+ <ul >
567+ <li >Bracket expressions such as <code >[abc]</code > or
568+ <code >[!.]</code > are not supported; they are treated as
569+ literal characters.</li >
570+ <li >A leading <code >.</code > in a filename is not treated
571+ specially. For example, <code >*~</code > will match
572+ <code >.example~</code >, whereas a shell glob would not.</li >
573+ </ul >
574+ </div >
575+
556576 <div class =" note" ><h3 >Regular Expressions</h3 >
557577 <p >This directive does not currently work in configuration sections
558578 that have regular expression arguments, such as <code class =" directive" ><a href =" ../mod/core.html#directorymatch" >< DirectoryMatch> </a ></code >
0 commit comments