Skip to content

🐛 fix(activation): reject split PowerShell paths - #3615

Merged
gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:fix/powershell-path-separator
Nov 20, 2026
Merged

gaborbernat merged 1 commit into
pypa:mainfrom
gaborbernat:fix/powershell-path-separator

Conversation

@gaborbernat

Copy link
Copy Markdown
Contributor

The PowerShell activator could place the wrong entry on PATH when PowerShell on POSIX reached the script through a directory symlink whose name contained a colon. It now rejects that directory before changing the shell environment. Fixes #3604.

Path validation

The activation path checks the environment directory derived from the script path for the platform separator. A colon in a POSIX environment directory now raises an error instead of splitting the directory into separate PATH entries.

Behavior changes

PowerShell activation fails with an explicit path error for affected POSIX directories. Other environment paths activate as before.

Report ANT-2026-MJKDDJIP.

@gaborbernat
gaborbernat merged commit cd5d972 into pypa:main Nov 20, 2026
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PowerShell activation splits a symlink path containing a colon

1 participant