Documentation
¶
Overview ¶
Package which implements the `which` built-in.
Resolution order:
- If the command is in the dispatch Registry, print /usr/bin/<name> (or whichever stub directory matches first in $PATH). This makes `which X` work for built-ins exactly like coreutils against /usr/bin entries.
- Otherwise walk $PATH (defaulting to "/usr/bin:/bin") and return the first executable found on the VFS.
- If nothing matches, exit 1 with no output.
Flags:
-a print every match, not just the first -s silent: no output, just set the exit code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.