diff --git a/Lib/venv/scripts/common/activate b/Lib/venv/scripts/common/activate index cbd4873f012246..9e983ab4c02369 100644 --- a/Lib/venv/scripts/common/activate +++ b/Lib/venv/scripts/common/activate @@ -20,7 +20,6 @@ deactivate () { if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then PS1="${_OLD_VIRTUAL_PS1:-}" - export PS1 unset _OLD_VIRTUAL_PS1 fi @@ -67,7 +66,6 @@ fi if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then _OLD_VIRTUAL_PS1="${PS1:-}" PS1="(__VENV_PROMPT__) ${PS1:-}" - export PS1 fi # Call hash to forget past commands. Without forgetting diff --git a/Misc/NEWS.d/next/Tools-Demos/2024-06-17-13-52-04.gh-issue-111501.syFLAV.rst b/Misc/NEWS.d/next/Tools-Demos/2024-06-17-13-52-04.gh-issue-111501.syFLAV.rst new file mode 100644 index 00000000000000..2989d4b81b1dd3 --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2024-06-17-13-52-04.gh-issue-111501.syFLAV.rst @@ -0,0 +1 @@ +PS1 is no longer exported by venv activate script