]> granicus.if.org Git - re2c/commitdiff
run_tests.sh: avoid '+=' in bash arrays (compatibility with old bash).
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 27 Jan 2016 19:53:39 +0000 (19:53 +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 42ea7ed884c804b7c1ce18bc7f9b2f48d6f3c9ec..abb5ec23d659b5ea1e58ce3676dc92ea2d3ee9b0 100644 (file)
@@ -49,7 +49,7 @@ do
                                threads=$number
                        fi
                        ;;
-               * ) tests+=("$arg") ;;
+               * ) tests[${#tests[@]}]="$arg" ;; # array is continuous (old bash lacks +=)
        esac
 done
 echo "Running in ${threads} thread(s)"