From: Michal Nowak Date: Fri, 30 May 2025 10:26:42 +0000 (+0200) Subject: Use "digit" class instead of character range in rndc_dumpdb() X-Git-Tag: v9.21.9~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baa5ccd795a251d346779ccba3c4de55a497d03c;p=thirdparty%2Fbind9.git Use "digit" class instead of character range in rndc_dumpdb() The tr range did not work on Solaris 11.4. Let's use a class that is defined in POSIX. --- diff --git a/bin/tests/system/conf.sh b/bin/tests/system/conf.sh index 6f1092749bf..86cfaa1df9e 100644 --- a/bin/tests/system/conf.sh +++ b/bin/tests/system/conf.sh @@ -440,7 +440,7 @@ rndc_dumpdb() { __ret=0 __dump_complete=0 __server="${1}" - __ip="10.53.0.$(echo "${__server}" | tr -c -d "0-9")" + __ip="10.53.0.$(echo "${__server}" | tr -c -d '[:digit:]')" shift ${RNDC} -c ../_common/rndc.conf -p "${CONTROLPORT}" -s "${__ip}" dumpdb "$@" >"rndc.out.test${n}" 2>&1 || __ret=1