From d37e6d3cf172d0b6a0179f7931d8c06ccdb8d0dc Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Mon, 11 Jul 2022 12:18:35 +0200 Subject: [PATCH] old bash versions have no tolower variable substitutions --- iocsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocsh b/iocsh index 5d79551..dad2b53 100755 --- a/iocsh +++ b/iocsh @@ -439,7 +439,7 @@ done if [ "$BASECODE" -ge 3141200 ] then - if [[ "${NOPVA,,}" =~ ^(|0|n|no|f|false|off)$ && -x "$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIocPVA$EXEPOSTFIX" ]] + if [[ $(tr [A-Z] [a-z] <<< "$NOPVA") =~ ^(|0|n|no|f|false|off)$ && -x "$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIocPVA$EXEPOSTFIX" ]] then EXE=$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIocPVA$EXEPOSTFIX ARGS="-D $EPICS_BASE/dbd/softIocPVA.dbd"