What should I expect using --files-without-match
and --count
#2404
Replies: 1 comment
-
I think this might be a documentation bug (and a partial implementation hiccup). Namely, the code implements Lines 1585 to 1600 in fe97c0a But the actual argument parser doesn't define The reason why ripgrep behaves this way is because it doesn't make sense to combine Now there is the related query of "show me a count of the number of lines that do not match my query." You can do that with |
Beta Was this translation helpful? Give feedback.
-
If I want to search files without a certain word I would do as follows
Now if I want to count how many files don't contain a certain match I would expect the following to give me that answer but instead it is the same as if I search for files matching
Are my expectations of
rg --files-without-match "strict" -tmd -c
wrong?Beta Was this translation helpful? Give feedback.
All reactions