]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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 04:29:50 +0000 (06:29 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 04:29:50 +0000 (04:29 +0000)
commitd82cddfe66016f2b655edc353333575ea7883634
tree053b1142661dcd9f2a146e90c4b0367c896e6cbb
parenta2b6e57a54082895b23dd4573cc22b466e67c744
[3.13] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH-154410)

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]