From 95623d39d6029ba78ec96ad5ea08e9ac12629b91 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Mon, 3 Aug 2020 18:43:13 -0300 Subject: New upstream version 2.11 --- test/runLint | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'test/runLint') diff --git a/test/runLint b/test/runLint index a84c46d8..95c3887e 100755 --- a/test/runLint +++ b/test/runLint @@ -1,10 +1,10 @@ -#!/bin/bash +#!/bin/bash -u gitgrep() { - local out=$(git grep -I -P -n "$1" | \ - grep -E '^(bash_completion|completions/|test/)' | \ - grep -Fv 'test/runLint') + local out=$(git grep -I -P -n "$1" | + grep -E '^(bash_completion|completions/|test/)' | + grep -Ev "^test/runLint\>${filter_out:+|$filter_out}") if [ -n "$out" ]; then printf '***** %s\n' "$2" printf '%s\n\n' "$out" @@ -12,9 +12,10 @@ gitgrep() } unset CDPATH -cd $(dirname "$0") ; cd .. +cd $(dirname "$0")/.. cmdstart='(^|[[:space:]]|\()' +filter_out= gitgrep $cmdstart"awk\b.*-F([[:space:]]|[[:space:]]*[\"'][^\"']{2,})" \ 'awk with -F char or -F ERE, use -Fchar instead (Solaris)' @@ -45,3 +46,6 @@ gitgrep '(?