1
0
Fork 0
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:
Wyatt Childers 2021-05-19 11:19:10 -04:00 committed by GitHub
parent 40c7bc1e6a
commit f2b054d0e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,4 +34,4 @@
- Search a literal string pattern:
`rg --fixed-strings {{string}}`
`rg --fixed-strings -- {{string}}`