]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jul 2026 08:41:58 +0000 (10:41 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 08:41:58 +0000 (08:41 +0000)
commitdd8584de860dfca000c97c1e1bf68f34cc0da0c8
tree21e65fd8e9110690f74db76dfda784a570d14260
parent0d3ec66244eaa96bc01775273b31549ab3fc09e9
[3.14] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH-154409)

activate.csh saved the prompt unconditionally, but the prompt variable
only exists in interactive shells, and csh fails on an undefined
variable.
(cherry picked from commit 4448705d879ea41ea97114ef6c8215590913811a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]