]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix 'warning: stray \ before white space' (#1150)
authorAmos Jeffries <yadij@users.noreply.github.com>
Wed, 28 Sep 2022 18:17:35 +0000 (18:17 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Wed, 7 Dec 2022 12:59:44 +0000 (01:59 +1300)
grep 3.8 started detecting overly-escaped regex patterns

test-builds.sh

index 8f4ec4d8f2caeac76832cde70914de7c2fb41a4d..2f2a5df96eaeda09043c38bfebeb23c53ebc89bf 100755 (executable)
@@ -113,7 +113,7 @@ buildtest() {
     # with the right parameters. TODO: Make less noisy.
     grep -E "BUILD" ${log}
 
-    errors="^ERROR|\ error:|\ Error\ |No\ such|assertion\ failed|FAIL:|:\ undefined"
+    errors="^ERROR|[ ]error:|[ ]Error[ ]|No[ ]such|assertion[ ]failed|FAIL:|:[ ]undefined"
     grep -E "${errors}" ${log}
 
     if test $result -eq 0; then