grep -vF '[' |paste -d'|' -s))" tests | \
sed "s/\([^:]\):.*env \([^)' ]*\).*/\1 \2/" | uniq | \
while read test prog; do \
- printf '%s' $$test | grep -q '\.pl$$' && continue; \
- grep -q "print_ver_.* $$prog" $$test \
+ printf '%s' $$test | grep '\.pl$$' >/dev/null && continue; \
+ grep "print_ver_.* $$prog" $$test >/dev/null \
|| echo $$test should call: print_ver_ $$prog; \
done | grep . && exit 1 || :
while read file name; do \
for i in $$name; do \
case "$$i" in install) i=ginstall;; esac; \
- 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; \
exclude_file_name_regexp--sc_ensure_comma_after_id_est = \.diff|$(_ll)$$
exclude_file_name_regexp--sc_long_lines = \.diff$$|$(_ll)
+# `grep . -q` is not exactly equivalent to `grep . >/dev/null`
+# and this difference is significant in the NEWS description
+exclude_file_name_regexp--sc_unportable_grep_q = NEWS
+
# Augment AM_CFLAGS to include our per-directory options:
AM_CFLAGS += $($(@D)_CFLAGS)
trap_sigpipe_or_skip_()
{
- (trap '' PIPE && yes | :) 2>&1 | grep -qF 'Broken pipe' ||
+ (trap '' PIPE && yes | :) 2>&1 | grep -F 'Broken pipe' >/dev/null ||
skip_ 'trapping SIGPIPE is not supported'
}
ls -l --quoting-style='shell-escape' symlink >out || fail=1
# Coreutils v8.26 and 8.27 failed to quote the target name
-grep -q "symlink -> 'needs quoting'\$" out ||
+grep "symlink -> 'needs quoting'\$" out >/dev/null ||
{ cat out; fail=1; }
Exit $fail