summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-03-15 09:55:31 -0400
committerAndrew Gallant <jamslam@gmail.com>2020-03-15 13:19:14 -0400
commitdaa831939873a50cd7e193a7211b5e3d37ad631c (patch)
treeb32e04af1842ad5faf9aa46d918e0e0caa572a8d /doc
parent3a6a24a52ad43d55554240b43e8be989c78e4efe (diff)
doc: note ripgrep's stdin behavior
Fixes #1439
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.1.txt.tpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/rg.1.txt.tpl b/doc/rg.1.txt.tpl
index 2d3a391f..2ba38dca 100644
--- a/doc/rg.1.txt.tpl
+++ b/doc/rg.1.txt.tpl
@@ -41,6 +41,11 @@ configuration file. The file can specify one shell argument per line. Lines
starting with *#* are ignored. For more details, see the man page or the
*README*.
+ripgrep will automatically detect if stdin exists and search stdin for a regex
+pattern, e.g. *ls | rg foo*. In some environments, stdin may exist when it
+shouldn't. To turn off stdin detection explicitly specify the directory to
+search, e.g. *rg foo ./*.
+
Tip: to disable all smart filtering and make ripgrep behave a bit more like
classical grep, use *rg -uuu*.