From afa63b2dcdc9b9d0183ffd84599ea5d4ad94d639 Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Sun, 10 Nov 2013 22:01:38 +0100 Subject: fix bashisms in testsuite/ These places use ${var/search/replace}, $((n++) and `type -p' constructs which are not-so-standard. Replace with equivalent constructs. Signed-off-by: Michael Tokarev Signed-off-by: Bernhard Reutner-Fischer --- testsuite/testing.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuite/testing.sh') diff --git a/testsuite/testing.sh b/testsuite/testing.sh index e7e64e58b..f5b756947 100644 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh @@ -56,10 +56,10 @@ optional() { SKIP= while test "$1"; do - if test x"${OPTIONFLAGS/*:$1:*/y}" != x"y"; then - SKIP=1 - return - fi + case "${OPTIONFLAGS}" in + *:$1:*) ;; + *) SKIP=1; return ;; + esac shift done } -- cgit v1.2.3