Skip to content

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
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