cpython/Lib/venv
Miss Islington (bot) 3c0d963379
[3.11] gh-112431: Unconditionally call `hash -r` (GH-112432) (GH-112492)
gh-112431: Unconditionally call `hash -r` (GH-112432)

The `activate` script calls `hash -r` in two places to make sure the shell picks
up the environment changes the script makes. Before that, it checks to
see if the shell running the script is bash or zsh.

`hash -r` is specified by POSIX and is not exclusive to bash and zsh.
This guard prevents the script from calling `hash -r` in other
`GH-!/bin/sh`-compatible shells like dash.
(cherry picked from commit a194938f33)

Co-authored-by: James Morris <6653392+J-M0@users.noreply.github.com>
2023-11-28 15:13:38 +05:30
..
scripts [3.11] gh-112431: Unconditionally call `hash -r` (GH-112432) (GH-112492) 2023-11-28 15:13:38 +05:30
__init__.py [3.11] gh-98741: Remove useless check_home usage from is_python_build usage (GH-98743) (GH-98746) 2022-10-26 23:35:54 +01:00
__main__.py