summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2016-01-03 00:18:58 +0100
committerBernhard Voelker <mail@bernhard-voelker.de>2016-01-03 00:18:58 +0100
commit50a950ba69c2ba8f2300c9e77f67978979537ad5 (patch)
treedb324ac0f120c86fac13282874c945408789f05a
parentaaf8d80f1d31289fd71a4be2749ba033693369f3 (diff)
downloadcoreutils-50a950ba69c2ba8f2300c9e77f67978979537ad5.tar.xz
maint: fix sc_long_lines to warn about 100+ maximum line length again
Since commit v8.23-60-g414a8cf, the above check failed to find sources where the length of the longest line is a 3 or more digit number. * cfg.mk (sc_long_lines): Remove the '\' escape character before '{' and '}', because this would mean literal '{' and '}' characters in an extended regular expression in sed(1).
-rw-r--r--cfg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.mk b/cfg.mk
index 441d78911..df22823be 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -321,7 +321,7 @@ sc_long_lines:
sed -r 1q /dev/null 2>/dev/null \
|| { echo "$@: skipping: sed -r not supported"; exit 0; }; \
files=$$($(VC_LIST_EXCEPT) | xargs wc -L | sed -rn '/ total$$/d;\
- s/^ *(8[1-9]|9[0-9]|[0-9]\{3,\}) //p'); \
+ s/^ *(8[1-9]|9[0-9]|[0-9]{3,}) //p'); \
halt='line(s) with more than 80 characters; reindent'; \
for file in $$files; do \
expand $$file | grep -nE '^.{80}.' | \