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.18.38~30^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0c900e4a6a10601c2d0a14c5afb433e8d24df748;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. (cherry picked from commit baa5ccd795a251d346779ccba3c4de55a497d03c) --- diff --git a/bin/tests/system/conf.sh.common b/bin/tests/system/conf.sh.common index 9022e4a4188..51258730284 100644 --- a/bin/tests/system/conf.sh.common +++ b/bin/tests/system/conf.sh.common @@ -647,7 +647,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