-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
glob ignored for items in path #725
Comments
Interesting, I guess
I think my thinking here was that if you specified a file on the command line, then that meant you explicitly wanted to search it, so nothing should override it. I suppose that is perhaps not exactly true if you're globbing or getting your file list from some other process. At the very least, grep's behavior is a strong vote in favor of respecting explicit globs even on explicitly given file paths. |
AFAIK I can see the other side of it too but that's my intuition anyway |
@okdana In the case of But yeah, I don't know what to do here. |
It might, if Passing
I never thought about that. But i guess if you're already involving 🤷♀️ |
Yeah, I guess I'm inclined to say this: unless someone can come up with a compelling reason to switch today's behavior, then I'd prefer to stay with what we have today. I do somewhat consider "that's what grep does" to be a strong vote in favor of switching, but I'd like a little more than that. |
It might be nice to have the behaviour documented for those coming from |
Fixes BurntSushi#725 (sort of) * Capitalise place-holder names consistently * Document PATTERN and PATH * Add note about PATH overriding glob/ignore rules
Fixes BurntSushi#725 (sort of) * Capitalise place-holder names consistently * Add note about PATH overriding glob/ignore rules
* Don't use 'smart typography' when generating man page * Document PATTERN and PATH * Capitalise place-holder names consistently * Add note about PATH overriding glob/ignore rules * Update args.rs for new PATH capitalisation Fixes #725
I found the following surprising:
I was expecting the above rg commands to return nothing.
The text was updated successfully, but these errors were encountered: