From: Mark Andrews Date: Tue, 18 Aug 2015 22:35:12 +0000 (+1000) Subject: awk on solaris doesn't like // as a pattern X-Git-Tag: v9.11.0a1~544 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c1c62cd8aa07379505579f64ee70a3b2e07f315;p=thirdparty%2Fbind9.git awk on solaris doesn't like // as a pattern --- diff --git a/bin/tests/system/rpzrecurse/tests.sh b/bin/tests/system/rpzrecurse/tests.sh index 759fc3cbed6..9ffe5e09a60 100644 --- a/bin/tests/system/rpzrecurse/tests.sh +++ b/bin/tests/system/rpzrecurse/tests.sh @@ -249,7 +249,7 @@ grep "^l2.l1.l0.[[:space:]]*[0-9]*[[:space:]]*IN[[:space:]]*A[[:space:]]*10.53.0 t=`expr $t + 1` echo "I:testing RPZ log clause (${t})" run_server log -cur=`awk 'BEGIN {l=0} // {l++} END { print l }' ns2/named.run` +cur=`awk 'BEGIN {l=0} /^/ {l++} END { print l }' ns2/named.run` $DIG $DIGOPTS l2.l1.l0 a @10.53.0.2 -p 5300 -b 10.53.0.4 > dig.out.${t} $DIG $DIGOPTS l2.l1.l0 a @10.53.0.2 -p 5300 -b 10.53.0.3 >> dig.out.${t} $DIG $DIGOPTS l2.l1.l0 a @10.53.0.2 -p 5300 -b 10.53.0.2 >> dig.out.${t}