Correct the Explanation of PATH Variable Lookup (#2975)

This PR corrects a small but important detail in the documentation regarding how the system searches for executable files. The original text incorrectly stated that the operating system performs this search. The corrected text clarifies that it is actually the shell that performs the search.
This commit is contained in:
Younes Askour 2024-06-01 20:13:57 +01:00 committed by GitHub
parent 56956e9d90
commit 8a464cfed1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ to the correct Python installation.
### Understanding PATH ### Understanding PATH
When you run a command like `python` or `pip`, your operating system When you run a command like `python` or `pip`, your shell (bash / zshrc / ...)
searches through a list of directories to find an executable file with searches through a list of directories to find an executable file with
that name. This list of directories lives in an environment variable that name. This list of directories lives in an environment variable
called `PATH`, with each directory in the list separated by a colon: called `PATH`, with each directory in the list separated by a colon: