From 74540d9e0e097ffce9b56ffe4ac30caea76f7b76 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 17 Apr 2014 13:08:44 +0000 Subject: Fix check-silliness' use of awk length function Posix took away using length without (). Reviewed-by: Richard Maw Reviewed-by: Daniel Silverstone --- scripts/check-silliness | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/check-silliness') diff --git a/scripts/check-silliness b/scripts/check-silliness index f956e647..662c0b9f 100755 --- a/scripts/check-silliness +++ b/scripts/check-silliness @@ -32,10 +32,10 @@ for x; do # IMPLEMENTS lines of them *.yarn) ;; *) - if awk 'length > 79' "$x" | grep . > /dev/null + if awk 'length($0) > 79' "$x" | grep . > /dev/null then echo "ERROR: $x has lines longer than 79 chars" 1>&2 - awk 'length > 79 { print NR, $0 }' "$x" 1>&2 + awk 'length($0) > 79 { print NR, $0 }' "$x" 1>&2 errors=1 fi ;; -- cgit v1.2.1