]> granicus.if.org Git - re2c/commitdiff
run_tests.sh: avoid another '+=' in bash arrays (compatibility with old bash).
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 28 Jan 2016 08:54:49 +0000 (08:54 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Sun, 7 Feb 2016 14:49:29 +0000 (14:49 +0000)
See #135 "In installation "make check" give syntax error".

re2c/run_tests.sh.in

index abb5ec23d659b5ea1e58ce3676dc92ea2d3ee9b0..6d097711c8929b7678233c1d83c03a7651a4d682 100644 (file)
@@ -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[@]}