A question about recursive directory searching #2367
-
I'm currently using ripgrep 13.0.0. I've noticed that the following commands don't actually search all dirs/files recursively and instead only print out a very small subset of matches:
So far the only way I can instruct ripgrep to properly search recursively is to use:
Is this behaviour by design or could it be OS- or shell- related? (Ubuntu 20, bash shell.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Do the beginning sentences of the README answer your question? Emphasis mine:
A similar message is repeated in the GitHub description of the project and the man page. Using |
Beta Was this translation helpful? Give feedback.
-
I've been working with a build system designed by a third party and I've discovered that it creates a .gitignore file in the root of the workspace. And this file is indeed the reason why ripgrep was only reporting a subset of matches. Thank you for the swift reply. and apologies for wasting your time. |
Beta Was this translation helpful? Give feedback.
Do the beginning sentences of the README answer your question? Emphasis mine:
A similar message is repeated in the GitHub description of the project and the man page.
Using
*
circumvents some of the filtering because the shell expands*
before invokingrg
. And regardless of what filters are enabled, ripgrep always searches whatever is explicitly given to it.