Fossil

Check-in [541e3249]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Replace []] example with [][] because a single-character character class is not terribly useful whereas the latter demonstrates the same concept as well as the visibly unusual way to match either bracket. Add example showing how to match a ^ character as well as ], further reinforcing the above.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | glob-docs
Files: files | file ages | folders
SHA3-256:541e32498932ce747aa778f1fd24dbdd654becb3c70ddd794cf5bc6a9336df94
User & Date: andygoth 2017-04-16 00:45:45
Original User & Date: andy 2017-04-16 00:45:45
Context
2017-04-16
01:09
Mention difference between Fossil globs and Unix shell globs check-in: 8df6df49 user: andygoth tags: glob-docs
00:45
Replace []] example with [][] because a single-character character class is not terribly useful whereas the latter demonstrates the same concept as well as the visibly unusual way to match either bracket. Add example showing how to match a ^ character as well as ], further reinforcing the above. check-in: 541e3249 user: andygoth tags: glob-docs
2017-04-14
22:40
Added a new document describing the details of the GLOB syntax used with many settings. Updated the permuted index generator (and the index) to include it. check-in: b96f86c6 user: rberteig tags: glob-docs
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to www/globs.md.

39
40
41
42
43
44
45
46
47

48
49
50
51
52
53
54
   `[`.


Some examples:

    [a-d]   Matches any one of 'a', 'b', 'c', or 'd'
    [a-]    Matches either 'a' or '-'
    []]     Matches exactly one ']' character
    [^]]    Matches exactly one character other than ']'


The glob is compared to the canonical name of the file in the checkout
tree, and must match the entire name to be considered a match.

A list of GLOBs is simply one or more GLOBs separated by whitespace or
commas. If a GLOB must contain a space or comma, it can be quoted with
either single or double quotation marks.







|

>







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
   `[`.


Some examples:

    [a-d]   Matches any one of 'a', 'b', 'c', or 'd'
    [a-]    Matches either 'a' or '-'
    [][]    Matches either '[' or ']'
    [^]]    Matches exactly one character other than ']'
    []^]    Matches either ']' or '^'

The glob is compared to the canonical name of the file in the checkout
tree, and must match the entire name to be considered a match.

A list of GLOBs is simply one or more GLOBs separated by whitespace or
commas. If a GLOB must contain a space or comma, it can be quoted with
either single or double quotation marks.