From fb2d3ac9817054bf6c9a96288a71d16522a7b254 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Fri, 10 Jul 2020 14:51:56 +0200 Subject: [PATCH] fix for SL6: sed does not know -z --- iocsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocsh b/iocsh index e6a23f4..f436191 100755 --- a/iocsh +++ b/iocsh @@ -125,7 +125,7 @@ then unset FILTER if [ -f $EPICS/ignore ] then - FILTER=$(echo "|grep -Ev '/base-($(sed < $EPICS/ignore -zr 's/\./\\./g;s/[ \t\r\n]+/|/g;s/\|$//'))/'") + FILTER=$(echo "|grep -Ev '/base-("$(sed < $EPICS/ignore ':b;$!N;s/\n/|/;tb;s/\./\\./g')")/'") fi EPICS_BASE=$(eval \ls -1vrd $EPICS/base-$BASE*/bin/{${EPICS_HOST_ARCH},${EPICS_HOST_ARCH%_64}} 2>/dev/null $FILTER | head -n1) fi