Binaries that are not in the path are still found by shell, how?

Viewed 22

Context: I have a macbook air M1

Example: I have homebrew installed and when I type

which brew

I get

/opt/homebrew/bin/brew

But when I check my path variables, this folder isn't there.

How is my shell still able to locate the brew binary?

EDIT: to clarify, I mean how am I still able to do something like

brew --help

If the brew binary is not in my path

0 Answers
Related