]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Trivial change: Update comments in activate about what running hash -r does...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 13 Oct 2024 07:55:37 +0000 (09:55 +0200)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2024 07:55:37 +0000 (08:55 +0100)
(cherry picked from commit 82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1)

Lib/venv/scripts/common/activate

index d5914e0cbb40d581cc7e6df983465c5f2a8af3a8..44df44a7404b43e3130ec01c76f9792355df90c1 100644 (file)
@@ -14,8 +14,9 @@ deactivate () {
         unset _OLD_VIRTUAL_PYTHONHOME
     fi
 
-    # Call hash to forget past commands. Without forgetting
-    # past commands the $PATH changes we made may not be respected
+    # Call hash to forget past locations. Without forgetting
+    # past locations the $PATH changes we made may not be respected.
+    # See "man bash" for more details. hash is usually a builtin of your shell
     hash -r 2> /dev/null
 
     if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then