Fossil

Check-in [8df6df49]
Login

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

Overview
Comment:Mention difference between Fossil globs and Unix shell globs
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | glob-docs
Files: files | file ages | folders
SHA3-256: 8df6df49fc6c988c692c7e069f5a4f346eba0d1abd8d184f7bebc3fda3595936
User & Date: andygoth 2017-04-16 01:09:53
Context
2017-04-16
01:11
Consistently use ` instead of ' to surround individual characters check-in: 565685b5 user: andygoth tags: glob-docs
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
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
55
56
57
58
   `[`.


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.

Since a newline is considered to be whitespace, a list of GLOBs in a
file (as for a versioned setting) may have one GLOB per line.







|





>
>
>
>







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
   `[`.


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.

Unlike typical Unix shell globs, wildcard sequences are allowed to
match '/' directory separators as well as the initial '.' in the name
of a hidden file or directory.

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.

Since a newline is considered to be whitespace, a list of GLOBs in a
file (as for a versioned setting) may have one GLOB per line.