From 17b4176e2e589d7563fca85d9f3b403ee4b4ef1f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 15 Jun 2022 15:39:49 -0500 Subject: [PATCH] Regex comparison can't be quoted or it won't be used as regex. --- scripts/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 5a647677..121becf2 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -234,7 +234,7 @@ txpect() then [ -z "$A" -o "$X" -ne 0 ] && { do_fail;break;} else - if [ ${1::1} == 'R' ] && [[ "$A" =~ "${1:2}" ]]; then true + if [ ${1::1} == 'R' ] && [[ "$A" =~ ${1:2} ]]; then true elif [ ${1::1} != 'R' ] && [ "$A" == "${1:1}" ]; then true else # Append the rest of the output if there is any. -- 2.39.2