I'm using the yash shell, which is strictly POSIX-compliant and errors out on `. .venv/bin/activate`. The snippet using a zsh-specific extension is `SCRIPT_PATH="${(%):-%x}"` in line 34. Please take a look at the original issue (I filed this with yash at first) for some context and a potential fix: https://github.com/magicant/yash/issues/62 Thank you.
Activity
improve shell compatibility of venv activate scripts (astral-sh#10397)
Revert "improve shell compatibility of venv activate scripts (#10397)" (
notatallshaw commentedon Jan 11, 2025
Fix was reverted
Fix missing-path Bash activation across compatible shells