Skip to content

Fix POSIX sh (dash) compatibility in pyenv-virtualenv-init#526

Merged
native-api merged 5 commits into
pyenv:masterfrom
chrisolof:525-sh-incompatibility-bug
Apr 21, 2026
Merged

Fix POSIX sh (dash) compatibility in pyenv-virtualenv-init#526
native-api merged 5 commits into
pyenv:masterfrom
chrisolof:525-sh-incompatibility-bug

Conversation

@chrisolof
Copy link
Copy Markdown
Contributor

Resolves #525.

v1.3.0 introduced bash-specific array syntax which breaks on systems where /bin/sh is dash. This fix replaces bash arrays with POSIX-compliant string concatenation, restoring sh compatibility while preserving the caching optimization. Test coverage has been added.

Assisted by Qwen3-Coder-30B-A3B-Instruct via OpenCode.

pyenvgh-525

Assisted by Qwen3-Coder-30B-A3B-Instruct via OpenCode.
Comment thread bin/pyenv-virtualenv-init Outdated
@native-api native-api merged commit 99d35f2 into pyenv:master Apr 21, 2026
6 checks passed
@chrisolof
Copy link
Copy Markdown
Contributor Author

Thanks @native-api!

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.

pyenv-virtualenv-init v1.3.0 fails with POSIX sh (dash) due to bash-specific array syntax

2 participants