Please note: This is not a question related to pip or python.
I am trying to make sense of why I see a "permission error" instead of "path not found" error.
I have done many installations and uninstallation for different softwares including python. So I can't recall how the setup was many years back.
My core question is why I see an "zsh: permission denied: pip" instead of "pip not found". When an executable doesn't exist, I would expect it to be say "not found" vs pointing to a possible permission issue.
And secondly; is there a way in linux\unix\mac to identify all commands\symlinks\aliases that are broken now?
Here is my terminal output
ayusman :$ pip
zsh: permission denied: pip
ayusman :$ which pip
pip not found
ayusman :$ type pip
pip not found
ayusman :$
Thank you.
whichandtypeare looking for an executable. Sincepipcannot be executed, the returned message is expected. For your second question, you will need to definebroken, e.g., is an executable in /usr/bin that can be run only by members of a certain group broken? Finding a dangling symlink can be done, determining if an alias is broken (again, define broken) would require executing each alias the shell knows about.