Skip to content

[3.13] gh-120291: Fix a bashism in python-config.sh.in (GH-120292) #120341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

miss-islington
Copy link
Contributor

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 GH-120291
(cherry picked from commit 7d24471)

Co-authored-by: Michał Górny [email protected]

pythongh-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 pythonGH-120291
(cherry picked from commit 7d24471)

Co-authored-by: Michał Górny <[email protected]>
@sobolevn sobolevn enabled auto-merge (squash) June 11, 2024 07:11
@sobolevn sobolevn merged commit 7993268 into python:3.13 Jun 11, 2024
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants