cpython/Lib/venv
Bernát Gábor 0d540afcec
gh-140006: Harden fish prompt against shadowed builtins (#150936)
A user function that shadows the `.`/`source` builtin hijacks the
activate.fish prompt. fish resolves functions ahead of builtins, so the
`echo "exit $status" | .` line that restores the exit status pipes into
the user function instead of sourcing. Dot-style directory navigators
redefine `.`, which made the prompt list the directory on every command
and dropped the exit status handed to the original prompt.

Route every builtin the prompt path uses (`source`, `echo`, `printf`,
`set_color`, `functions`) through `builtin` so no user function can
intercept them. These have all been fish builtins with a stable
interface since fish 2.0.0, the version the script already required
through `functions --copy`, so the minimum supported fish version does
not change.
2026-06-22 16:39:08 +01:00
..
scripts gh-140006: Harden fish prompt against shadowed builtins (#150936) 2026-06-22 16:39:08 +01:00
__init__.py gh-149879: Fix test_venv on Cygwin (#150483) 2026-05-26 18:32:13 +02:00
__main__.py GH-83417: Allow venv to add a .gitignore file to environments via a new scm_ignore_file parameter (GH-108125) 2023-09-15 22:38:08 +00:00