diff options
author | Andrew Athan <24279435+aathan@users.noreply.github.com> | 2024-10-13 07:22:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 07:22:05 (GMT) |
commit | 82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1 (patch) | |
tree | 84418706223eddc5e76fe80fe5b5de434b2a8ee2 /Lib/venv | |
parent | a8fa4ad9e9f7aa0cba8b23af2c583d17bb1d1847 (diff) | |
download | cpython-82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1.zip cpython-82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1.tar.gz cpython-82bcaf15890cf85b76b4f62d2dd1710bb49c3ed1.tar.bz2 |
Trivial change: Update comments in activate about what running hash -r does (GH-125385)
Update comments about what running hash -r does
The old comment said "hash -r" forgets "past commands." However, the documentation for "hash" states that it forgets past locations. The old comment was, in my opinion, confusing. This is because it could be interpreted to mean it does something to the command history (HISTORY/HISTFILE etc) vs the cache of locations.
Diffstat (limited to 'Lib/venv')
-rw-r--r-- | Lib/venv/scripts/common/activate | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/venv/scripts/common/activate b/Lib/venv/scripts/common/activate index cbd4873..4593799 100644 --- a/Lib/venv/scripts/common/activate +++ b/Lib/venv/scripts/common/activate @@ -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 |