Project

General

Profile

Bug #7230 ยป 0001-Fixes-typo-in-Dir-glob-pattern-documentation.patch

ebouchut (Eric Bouchut), 10/29/2012 01:53 AM

View differences:

dir.c
* <code>/ .* /x</code> in regexp. Note, this
* will not match Unix-like hidden files (dotfiles).
* In order to include those in the match results,
* you must use something like "{*,.*}".
* you must use something like <code>"{*,.*}"</code>.
* <code>**</code>:: Matches directories recursively.
* <code>?</code>:: Matches any one character. Equivalent to
* <code>/.{1}/</code> in regexp.
......
* More than two literals may be specified.
* Equivalent to pattern alternation in
* regexp.
* <code> \ </code>:: Escapes the next metacharacter.
* Note that this means you cannot use backslash in windows
* as part of a glob, i.e. Dir["c:\\foo*"] will not work
* use Dir["c:/foo*"] instead
* <code> \\ </code>:: Escapes the next metacharacter.
* Note that this means you cannot use backslash
* in windows as part of a glob,
* i.e. <code>Dir["c:\\foo*"]</code> will not work,
* use <code>Dir["c:/foo*"]</code> instead.
*
* Dir["config.?"] #=> ["config.h"]
* Dir.glob("config.?") #=> ["config.h"]
    (1-1/1)