-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Globbing engine syntax documentation example possible error #79
Comments
These are all great questions and should be clarified in the docs.
So you're thinking that
Sure enough, the There is one thing wrong with the example though: rooted globbing patterns aren't allowed. So the pattern
That's correct,
The former - it specifies a set, not a range.
Correct.
No, there's no range calculus going on. It's most useful when dealing with "not" logic like
The best way to get an idea how Thanks a lot for these great questions - it challenged some of my own recollection of how the globbing works and made me write a few new unit tests just to be sure I understood it correctly. I'll revisit the docs around this area soon (and will keep this issue open as a reminder until I do). |
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.
The text was updated successfully, but these errors were encountered: