From bfe54c94598d67a24b961203428e9887833004f3 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Fri, 18 Mar 2022 07:39:44 +0300 Subject: [PATCH] `declare -ar` causes "readonly variable" error in Bash 3.2 Fixes https://github.com/pyenv/pyenv/issues/2278 --- plugins/python-build/share/python-build/pypy2.7-7.3.8 | 2 +- plugins/python-build/share/python-build/pypy3.7-7.3.8 | 2 +- plugins/python-build/share/python-build/pypy3.8-7.3.8 | 2 +- plugins/python-build/share/python-build/pypy3.9-7.3.8 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/python-build/share/python-build/pypy2.7-7.3.8 b/plugins/python-build/share/python-build/pypy2.7-7.3.8 index ff39e312..ca2b4efc 100644 --- a/plugins/python-build/share/python-build/pypy2.7-7.3.8 +++ b/plugins/python-build/share/python-build/pypy2.7-7.3.8 @@ -75,7 +75,7 @@ function pypy_pkg_data { } # determine command, package directory, url+hash -declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" +declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" # install ${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip' diff --git a/plugins/python-build/share/python-build/pypy3.7-7.3.8 b/plugins/python-build/share/python-build/pypy3.7-7.3.8 index cfe99404..c6e964b8 100644 --- a/plugins/python-build/share/python-build/pypy3.7-7.3.8 +++ b/plugins/python-build/share/python-build/pypy3.7-7.3.8 @@ -75,7 +75,7 @@ function pypy_pkg_data { } # determine command, package directory, url+hash -declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" +declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" # install ${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip' diff --git a/plugins/python-build/share/python-build/pypy3.8-7.3.8 b/plugins/python-build/share/python-build/pypy3.8-7.3.8 index 98cedf6e..2a4db0ee 100644 --- a/plugins/python-build/share/python-build/pypy3.8-7.3.8 +++ b/plugins/python-build/share/python-build/pypy3.8-7.3.8 @@ -75,7 +75,7 @@ function pypy_pkg_data { } # determine command, package directory, url+hash -declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" +declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" # install ${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip' diff --git a/plugins/python-build/share/python-build/pypy3.9-7.3.8 b/plugins/python-build/share/python-build/pypy3.9-7.3.8 index 11cd6b13..8d8c01ed 100644 --- a/plugins/python-build/share/python-build/pypy3.9-7.3.8 +++ b/plugins/python-build/share/python-build/pypy3.9-7.3.8 @@ -75,7 +75,7 @@ function pypy_pkg_data { } # determine command, package directory, url+hash -declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" +declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" # install ${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'