2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

expr length arg is not portable

This commit is contained in:
Mark Andrews
2014-03-12 13:59:41 +11:00
parent f5375b1b8e
commit bab2bf7dfd

View File

@@ -1921,7 +1921,7 @@ for i in 1 2 3 4 5 6 7 8 9 10 ; do
sleep 1
done;
[ "$salt" != "-" ] || ret=1
[ `expr length $salt` -eq 16 ] || ret=1
[ `expr "${salt}" : ".*"` -eq 16 ] || ret=1
n=`expr $n + 1`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
@@ -1938,7 +1938,7 @@ for i in 1 2 3 4 5 6 7 8 9 10 ; do
sleep 1
done;
[ "$salt" != "$oldsalt" ] || ret=1
[ `expr length $salt` -eq 16 ] || ret=1
[ `expr "$salt" : ".*"` -eq 16 ] || ret=1
n=`expr $n + 1`
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`