mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 17:26:01 +02:00
rg: improved fixed string suggestion (#5995)
It's better to include a `--` prior to the search string so that strings starting with `--` (e.g. `--foo`) aren't processed as cli options. https://github.com/BurntSushi/ripgrep/discussions/1560#discussioncomment-6346
This commit is contained in:
parent
40c7bc1e6a
commit
f2b054d0e1
1 changed files with 1 additions and 1 deletions
|
@ -34,4 +34,4 @@
|
|||
|
||||
- Search a literal string pattern:
|
||||
|
||||
`rg --fixed-strings {{string}}`
|
||||
`rg --fixed-strings -- {{string}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue