-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
On page:
https://wyam.io/docs/concepts/io
I have two issues.
First issue:
I was looking at the examples for Globbing Engine Syntax and noticed something that is either an error or an unintuitive definition:
Leaving the last option blank indicates any match at that position. For example, /{a,}/**/x.txt will find:
/a/x.txt
/a/b/x.txt
/d/x.txt
I would expect that the pattern /{a,}/**/x.txt would require matched files to be at least two directories deep since / is the root, {a,}/ is one deep and then **/ is another one or more.
Second issue:
I would appreciate some extra clarification about the syntax.
- It says that * and ** match any number of characters, does that mean 0 or more such that /*.txt would match "/.txt"?
- Is {n,x} an or statement that will match either "n" or "x" or is this a range that will match anything from "n" to "x", such as "t"?
- If {n,x} is an or statement then can it be even longer, such as {n,x,y} to match three characters?
- When you leave one side null, for example {c,}, does it match everything that is "c" or greater meaning that it would match "c" and "t", but not "a" or "b"?
- If 4 is true, where do numbers and symbols show up in the ordering, is it by ascii order?
- If 4 and 5 are true, is it possible to have the first entry null, such as {,b} to match all characters less than or equal to "b"?
- It says that ! is useful when used with multiple expansion such as {*,!x}. Is it usable in any other way and what would it mean in that context?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels