whence
A Zsh builtin to indicate how a command would be interpreted. More information: https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html#index-whence.
- Interpret
command, with expansion if defined as analias(similar to thecommand -vbuiltin):
whence ""
- Display type of
command, with location if defined as a function or binary (equivalent to thetypeandcommand -Vbuiltins):
whence -v ""
- Display type of
command, with content of shell functions instead of location (equivalent towhichbuiltin):
whence -c ""
- Display type of
command, with content of shell functions and all occurrences on command path (equivalent to thewherebuiltin):
whence -ca ""
- Search only the
$PATHforcommand, ignoring builtins, aliases, or shell functions (equivalent to thewherecommand):
whence -p ""
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
