]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Changed $(command) to `command` in tests.sh for compatibility with
authorEvan Hunt <each@isc.org>
Mon, 20 Dec 2010 18:37:07 +0000 (18:37 +0000)
committerEvan Hunt <each@isc.org>
Mon, 20 Dec 2010 18:37:07 +0000 (18:37 +0000)
older bourne shells.

bin/tests/system/dlzexternal/tests.sh
bin/tests/system/tsiggss/tests.sh

index 019e37d30940d5e5a83a9321282f62948271649b..cf31d378a7f77ca40f5378ab9860cf936a194918 100644 (file)
@@ -25,8 +25,9 @@ EOF
        return 1
     }
 
-    out="$($DIG $DIGOPTS -t $type -q $host | egrep ^$host)"
-    [ $(echo "$out" | grep "$digout" | wc -l) -eq 1 ] || {
+    out=`$DIG $DIGOPTS -t $type -q $host | egrep ^$host`
+    lines=`echo "$out" | grep "$digout" | wc -l`
+    [ $lines -eq 1 ] || {
        echo "I:dig output incorrect for $host $type $cmd: $out"
        return 1
     }
index 1f37578e7aba6822943bc7526c099c7e03a3ff8e..a571c68742dcbd7b4e139779904cf4ad259f0f57 100644 (file)
@@ -28,8 +28,9 @@ EOF
        return 1
     }
 
-    out="$($DIG $DIGOPTS -t $type -q $host | egrep ^$host)"
-    [ $(echo "$out" | grep "$digout" | wc -l) -eq 1 ] || {
+    out=`$DIG $DIGOPTS -t $type -q $host | egrep ^$host`
+    lines=`echo "$out" | grep "$digout" | wc -l`
+    [ $lines -eq 1 ] || {
        echo "I:dig output incorrect for $host $type $cmd: $out"
        return 1
     }
@@ -37,7 +38,7 @@ EOF
 }
 
 echo "I:testing updates as administrator"
-KRB5CCNAME=$(pwd)/ns1/administrator.ccache
+KRB5CCNAME=`pwd`/ns1/administrator.ccache
 export KRB5CCNAME
 
 test_update testdc1.example.nil. A "86400 A 10.53.0.10" "10.53.0.10" || status=1
@@ -45,7 +46,7 @@ test_update testdc2.example.nil. A "86400 A 10.53.0.11" "10.53.0.11" || status=1
 test_update denied.example.nil. TXT "86400 TXT helloworld" "helloworld" && status=1
 
 echo "I:testing updates as a user"
-KRB5CCNAME=$(pwd)/ns1/testdenied.ccache
+KRB5CCNAME=`pwd`/ns1/testdenied.ccache
 export KRB5CCNAME
 
 test_update testdenied.example.nil. A "86400 A 10.53.0.12" "10.53.0.12" && status=1