You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That leading slash is getting replaced by something else, presumably in your shell. There is nothing ripgrep can do about this AFAIK.
In any case, this is a duplicate of #1667. And it looks like it contains a work-around. Try rg --path-separator //?
I don't know how grep is avoiding this problem, but it's plausible that it has been compiled in a way that prevents these issues. It's unlikely that a similar solution will work for ripgrep.
What version of ripgrep are you using?
ripgrep 13.0.0 (rev c9e3ffc419)
How did you install ripgrep?
cargo install ripgrep
What operating system are you using ripgrep on?
Git Bash (version 4.4.23(1)-release (x86_64-pc-msys)) in Windows 10.
Describe your bug.
Results not matching grep when the search pattern contains slashes.
What are the steps to reproduce the behavior?
rg '/form/save' yourfile
What is the actual behavior?
Show the command you ran and the actual output. Include the
--debug
flag inyour invocation of ripgrep.
https://gist.github.com/Vagelis-Prokopiou/81825543448057468f2fcfed99fdb7f2
What is the expected behavior?
It should have found the pattern, just like grep does.
The text was updated successfully, but these errors were encountered: