]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] 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:38:09 +0000 (06:38 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 04:38:09 +0000 (04:38 +0000)
commita5e2d7488d71d2889a3522cbc8983ce5612574fc
treeb7c6d57dab354a61cefbaf6b5e8031c96c66e52d
parenta111ea1d7e090add94f204555ce2b122341dfea8
[3.15] gh-154399: Fix venv activate.csh in a non-interactive shell (GH-154400) (GH-154408)

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]