]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 22 Jul 2026 04:05:10 +0000 (07:05 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 04:05:10 +0000 (07:05 +0300)
commit4448705d879ea41ea97114ef6c8215590913811a
treeba66de98acc7609bf853d54fd485f38cd07aa28e
parentcbe4977af3ac4c26cf1186c3cdae1cb8021651b9
gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400)

activate.csh saved the prompt unconditionally, but the prompt variable
only exists in interactive shells, and csh fails on an undefined
variable.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/venv/scripts/posix/activate.csh
Misc/NEWS.d/next/Library/2026-07-21-21-36-59.gh-issue-154399.VSa6oH.rst [new file with mode: 0644]