]> git.sur5r.net Git - openldap/commitdiff
awk portability fix
authorHoward Chu <hyc@openldap.org>
Thu, 29 Nov 2007 13:45:55 +0000 (13:45 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 29 Nov 2007 13:45:55 +0000 (13:45 +0000)
tests/scripts/test020-proxycache

index 6830c1c10908aa92a5159c69cec761bbb0a13f44..5787b226b912ab5f75f402438312ff5fda49826e 100755 (executable)
@@ -417,7 +417,7 @@ esac
 #not answerable because of sizelimit, queries contained in it are no longer
 #answerable as well
 ANSWERABILITY=111001
-grep ANSWERABLE $LOG2 | awk -vFIRST=$FIRST '{ 
+grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'{ 
                if (NR > FIRST) { 
                        if ($2 == "NOT") 
                                printf "Query %d not answerable\n",NR
@@ -425,7 +425,7 @@ grep ANSWERABLE $LOG2 | awk -vFIRST=$FIRST '{
                                printf "Query %d answerable\n",NR 
                }
        }' 
-ANSWERED=`grep ANSWERABLE $LOG2 | awk -vFIRST=$FIRST '{ 
+ANSWERED=`grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'{ 
                if (NR > FIRST) { 
                        if ($2 == "NOT") 
                                printf "0"