summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cfg.mk2
-rw-r--r--doc/find.texi2
-rw-r--r--init.cfg2
3 files changed, 3 insertions, 3 deletions
diff --git a/cfg.mk b/cfg.mk
index 97086496..75cf1fc3 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -232,7 +232,7 @@ sc_prohibit_test_calls_print_ver_with_irrelevant_argument:
| { fail=0; \
while read file name; do \
for i in $$name; do \
- grep -w "$$i" $$file|grep -vw print_ver_|grep -q . \
+ grep -w "$$i" $$file|grep -vw print_ver_|grep . >/dev/null \
|| { fail=1; \
echo "*** Test: $$file, offending: $$i." 1>&2; };\
done; \
diff --git a/doc/find.texi b/doc/find.texi
index 379fe646..bf70be6c 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -3050,7 +3050,7 @@ its argument is an unstripped binary file:
@example
#! /bin/sh
-file "$1" | grep -q "not stripped"
+file "$1" | grep "not stripped" >/dev/null
@end example
diff --git a/init.cfg b/init.cfg
index 98423613..42daffb4 100644
--- a/init.cfg
+++ b/init.cfg
@@ -520,7 +520,7 @@ find_emits_warnings_()
{
# Find usually emits a warning for the deprecated -d option.
find -maxdepth 0 -d -quit 2>&1 \
- | grep -q 'warning:'
+ | grep 'warning:' >/dev/null
}
# Skip the current test if "." lacks d_type support.