]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120291: Fix a bashism in python-config.sh.in (#120292)
authorMichał Górny <mgorny@gentoo.org>
Tue, 11 Jun 2024 07:11:13 +0000 (09:11 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Jun 2024 07:11:13 +0000 (10:11 +0300)
commit7d2447137e117ea9a6ee1493bce0b071c76b1bd7
tree9cffdc26c0b78b2d11ceb570e1d0f4a6bd71c5f1
parent141babad9b4eceb83371bf19ba3a36b50dd05250
gh-120291: Fix a bashism in python-config.sh.in (#120292)

gh-120291: Fix bashisms in python-config.sh.in

Replace the use of bash-specific `[[ ... ]]` with POSIX-compliant
`[ ... ]` to make the `python-config` shell script work with non-bash
shells again.  While at it, use `local` in a safer way, since it is
not in POSIX either (though universally supported).

Fixes #120291
Misc/NEWS.d/next/Build/2024-06-09-15-54-22.gh-issue-120291.IpfHzE.rst [new file with mode: 0644]
Misc/python-config.sh.in