1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-25 14:35:24 +02:00
tldr/pages/osx/whence.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

24 lines
854 B
Markdown

# whence
> A zsh builtin to indicate how a command would be interpreted.
> More information: <https://keith.github.io/xcode-man-pages/whence.1.html>.
- Interpret `command`, with expansion if defined as an `alias` (similar to the `command -v` builtin):
`whence "{{command}}"`
- Display type of `command`, with location if defined as a function, or binary (equivalent to the `type` and `command -V` builtins):
`whence -v "{{command}}"`
- Same as above, except display content of shell functions instead of location (equivalent to `which` builtin):
`whence -c "{{command}}"`
- Same as above, but show all occurrences on command path (equivalent to the `where` builtin):
`whence -ca "{{command}}"`
- Search only the `PATH` for `command`, ignoring builtins, aliases or shell functions (equivalent to the `where` command):
`whence -p "{{command}}"`