summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-28 09:44:03 (GMT)
committerGitHub <noreply@github.com>2023-11-28 09:44:03 (GMT)
commit49494c472161976dec483eb09e1bad0378758d3f (patch)
tree137d9a4bd427a8b79a8f09c081f2305f648472c3 /Python
parente28722e7721d33898013778a00e4d3eed8fd1be6 (diff)
downloadcpython-49494c472161976dec483eb09e1bad0378758d3f.zip
cpython-49494c472161976dec483eb09e1bad0378758d3f.tar.gz
cpython-49494c472161976dec483eb09e1bad0378758d3f.tar.bz2
[3.12] gh-112431: Unconditionally call `hash -r` (GH-112432) (GH-112493)
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 a194938f33a71e727e53490815bae874eece1460) Co-authored-by: James Morris <6653392+J-M0@users.noreply.github.com>
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions