From: Ulya Trofimovich Date: Thu, 28 Jan 2016 08:54:49 +0000 (+0000) Subject: run_tests.sh: avoid another '+=' in bash arrays (compatibility with old bash). X-Git-Tag: 1.0~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3124a7994a677ddb3d0d0272e802e2ce643a828b;p=re2c run_tests.sh: avoid another '+=' in bash arrays (compatibility with old bash). See #135 "In installation "make check" give syntax error". --- diff --git a/re2c/run_tests.sh.in b/re2c/run_tests.sh.in index abb5ec23..6d097711 100644 --- a/re2c/run_tests.sh.in +++ b/re2c/run_tests.sh.in @@ -214,7 +214,7 @@ for ((i = 0; i < ${#packs[@]}; i++)) do logs[$i]=`date +%y%m%d%H%M%S`_$i run_pack ${logs[i]} ${packs[i]} & - wait_pids+=( $! ) + wait_pids[${#wait_pids[@]}]=$! # array is continuous (old bash lacks +=) done wait ${wait_pids[@]}