diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-01-03 00:18:58 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2016-01-03 00:18:58 +0100 |
commit | 50a950ba69c2ba8f2300c9e77f67978979537ad5 (patch) | |
tree | db324ac0f120c86fac13282874c945408789f05a | |
parent | aaf8d80f1d31289fd71a4be2749ba033693369f3 (diff) | |
download | coreutils-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.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}.' | \ |