I'm running ripgrep search on Windows inside emacs. My config is
(setq grep-command "rg -nS --no-heading "
grep-use-null-device nil)
When I run command M-x grep and pass, for example, hello rg -nS --no-heading hello, it says that Grep finished with no matches found .... There should be matches, but it doesn't find anything no matter what I try.
I diagnosed it a bit, so there is a way of calling ripgrep providing a path: rg [OPTIONS] PATTERN [PATH ...]. I tried running rg -nS --no-heading hello . (with dot at the end) and it worked. That's a bit confusing, since both commands run fine in console from the same path. But in emacs only the second one seems to work. Can somebody explain why it works that way?