Skip to content

Conversation

@miss-islington
Copy link
Contributor

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.
(cherry picked from commit 82bcaf1)

Co-authored-by: Andrew Athan 24279435+aathan@users.noreply.github.com

…r does (pythonGH-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.
(cherry picked from commit 82bcaf1)

Co-authored-by: Andrew Athan <24279435+aathan@users.noreply.github.com>
@vsajip vsajip merged commit 801ef7d into python:3.13 Oct 13, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants