[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/6] maint: fix issue in syntax-check
From: |
Bernhard Voelker |
Subject: |
[PATCH 2/6] maint: fix issue in syntax-check |
Date: |
Wed, 18 Mar 2020 08:10:04 +0100 |
* cfg.mk (sc_prohibit_colon_redirection): Don't expect `|` to denote
the pipe character in git grep.
Sync fix from:
https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=0e2d4e1425
---
cfg.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cfg.mk b/cfg.mk
index cd7acced..f6ca7a22 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -127,8 +127,8 @@ sc_tests_executable:
# Avoid :>file which doesn't propagate errors
sc_prohibit_colon_redirection:
- @cd $(srcdir)/tests && GIT_PAGER= git grep -n ': *>.*||' \
- && { echo '$(ME): '"The leading colon in :> will hide errors" 1>&2; \
+ @cd $(srcdir)/tests && GIT_PAGER= git grep -En ': *>.*\|\|' \
+ && { echo '$(ME): '"The leading colon in :> will hide errors" >&2; \
exit 1; } \
|| :
--
2.25.1