On Windows, the bin/tests/system/dnssec/signer/example.db.signed file
contains carriage return characters at the end of each line. Remove
them before passing the aforementioned file to the awk script extracting
key IDs so that the latter can work properly.
status=$((status+ret))
get_rsasha1_key_ids_from_sigs() {
+ tr -d '\r' < signer/example.db.signed | \
awk '
NF < 8 { next }
$(NF-5) != "RRSIG" { next }
getline;
print $3;
}
- ' signer/example.db.signed | sort -u
+ ' | \
+ sort -u
}
echo_i "checking that we can sign a zone with out-of-zone records ($n)"