From e2c4643eb9250f164efba11128ef0801595c89e8 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 13 May 2020 21:06:54 +0200 Subject: [PATCH] fix problem when two or more installed epics versions match --- iocsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocsh b/iocsh index 62b0b3a..13514b0 100755 --- a/iocsh +++ b/iocsh @@ -119,7 +119,7 @@ then EPICS_BASE=$(\ls -1vrd $EPICS/base/bin/{${EPICS_HOST_ARCH},${EPICS_HOST_ARCH%_64}} 2>/dev/null | head -n1) else # find highest (requested) EPICS version that supports our architecture (or its 32 bit version) - EPICS_BASE=$(\ls -1vrd $EPICS/base-$BASE/bin/{${EPICS_HOST_ARCH},${EPICS_HOST_ARCH%_64}} 2>/dev/null) + EPICS_BASE=$(\ls -1vrd $EPICS/base-$BASE/bin/{${EPICS_HOST_ARCH},${EPICS_HOST_ARCH%_64}} 2>/dev/null | head -n1) if [ -z "$EPICS_BASE" ] then unset FILTER