From 5419a563d87432958b62dafa654b7efb63042c7e Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Fri, 30 May 2025 12:26:42 +0200 Subject: [PATCH] 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) --- bin/tests/system/conf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/conf.sh b/bin/tests/system/conf.sh index 40ca8210de..38c1ff7851 100644 --- a/bin/tests/system/conf.sh +++ b/bin/tests/system/conf.sh @@ -447,7 +447,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