From f2b054d0e1f746702d79c1d52e97b3f42c1609b8 Mon Sep 17 00:00:00 2001 From: Wyatt Childers Date: Wed, 19 May 2021 11:19:10 -0400 Subject: [PATCH] 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 --- pages/common/rg.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/rg.md b/pages/common/rg.md index 347001671..7548b4d24 100644 --- a/pages/common/rg.md +++ b/pages/common/rg.md @@ -34,4 +34,4 @@ - Search a literal string pattern: -`rg --fixed-strings {{string}}` +`rg --fixed-strings -- {{string}}`