From d98e56fb0725f96a5cb39362c2d9a60a39e69154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 6 Jan 2014 17:27:05 +0200 Subject: [PATCH] (testsuite) Check for grep and ls invoked without "command", see README --- test/runLint | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/runLint b/test/runLint index 88c717a2..347adc6f 100755 --- a/test/runLint +++ b/test/runLint @@ -2,7 +2,7 @@ gitgrep() { - local out=$(git grep -I -E -n "$1" | \ + local out=$(git grep -I -P -n "$1" | \ grep -E '^(bash_completion|completions/|test/)' | \ grep -Fv 'test/runLint') if [ -n "$out" ] ; then @@ -40,3 +40,6 @@ gitgrep $cmdstart'[ef]grep\b' \ # TODO: $ in sed subexpression used as an anchor (POSIX BRE optional, not in # Solaris/FreeBSD) + +gitgrep '(?