From: Michal Nowak Date: Tue, 27 Oct 2020 09:30:21 +0000 (+0100) Subject: Replace a seq invocation with a shell loop X-Git-Tag: v9.17.7~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c4c024c64018aefe655103fcba6f6fa9ec7581;p=thirdparty%2Fbind9.git Replace a seq invocation with a shell loop seq is not portable. Use a while loop instead to make the "dnssec" system test script POSIX-compatible. --- diff --git a/bin/tests/system/dnssec/ns2/sign.sh b/bin/tests/system/dnssec/ns2/sign.sh index dfe35fea9d9..1bfaa37a04f 100644 --- a/bin/tests/system/dnssec/ns2/sign.sh +++ b/bin/tests/system/dnssec/ns2/sign.sh @@ -196,8 +196,10 @@ cat > "$zonefile" << EOF ns2 10 A 10.53.0.2 ns3 10 A 10.53.0.3 EOF -for i in $(seq 300); do +i=1 +while [ $i -le 300 ]; do echo "host$i 10 IN NS ns.elsewhere" + i=$((i+1)) done >> "$zonefile" key1=$("$KEYGEN" -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -n zone -f KSK "$zone") key2=$("$KEYGEN" -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -n zone "$zone")