-
Notifications
You must be signed in to change notification settings - Fork 78
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
'*' broken in Pattern::matches_path #56
Comments
This is configurable. Have you seen the It does look like there's some interesting stuff going on:
I think the above two things at least explain the behavior you're seeing, and since it's documented, I guess it's intended behavior? One other interesting thing to note is that Either way, I don't think |
I do see now that it's technically documented. But you have to read in various places. Note that both @alexcrichton did you intend cargo to use |
I'm not so sure about that. For example, if I write (Interestingly, I do agree that the current docs are confusing, and especially that |
Ran into this as well. From https://man7.org/linux/man-pages/man7/glob.7.html :
Personally, I find this way more sensible. I think this should be made the default (which would be a breaking change though). Either way, the current situation should be documented more clearly as it deviates from what one might expect. |
Here's a recursive file list:
Running this program
outputs
Note it DID NOT output
globbed: src/a/b.rs
. Meaningglob
andPattern::matches_path
are inconsistent here. I thinkglob
is correct as '*' should not match across slashes.The text was updated successfully, but these errors were encountered: