type t
create ~dir pattern
refers to anything in dir
whose basename matches
the pattern
. Note that patterns with slashes or path globs (**) in them
do not work.
Special syntax allowed in pattern
:
* - stands for any string unless it's the leading character, in which case it does not match empty string or hidden files (prefixed with a dot). ? - stands for any character [a-z] - a character in range ['a' .. 'z'] [!a-z] - a character out of ['a' .. 'z'] \ - escapes the character following it {alt1,alt2} - matches both alt1 and alt2. can be nested.
create ~dir pattern
refers to anything in dir
whose basename matches
the pattern
. Note that patterns with slashes or path globs (**) in them
do not work.
Special syntax allowed in pattern
:
* - stands for any string unless it's the leading character, in which case it does not match empty string or hidden files (prefixed with a dot). ? - stands for any character [a-z] - a character in range ['a' .. 'z'] [!a-z] - a character out of ['a' .. 'z'] \ - escapes the character following it {alt1,alt2} - matches both alt1 and alt2. can be nested.
matches exactly the filename given