Can't find fixed strings #1677
-
What version of ripgrep are you using?ripgrep 12.1.1 How did you install ripgrep?nixpkgs What operating system are you using ripgrep on?macOS 10.15.6 Describe your bug.For some reason, a query with "--fixed-strings" can't find lines that match the fixed string. What are the steps to reproduce the behavior?Let's say you have this file "/tmp/1":
This query should return the second line in the file but it returns nothing:
What is the actual behavior?
What is the expected behavior?ripgrep should return the 2nd line |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Use single quotes instead of double quotes. With double quotes, your shell is expanding your |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response! Now I feel dumb 😭 |
Beta Was this translation helpful? Give feedback.
Use single quotes instead of double quotes. With double quotes, your shell is expanding your
$variable
s, which are presumably undefined and therefore empty.