osx/*: update page (#7665)
This commit is contained in:

committed by
GitHub

parent
b1326296cd
commit
692469016e
@@ -1,23 +1,24 @@
|
||||
# whence
|
||||
|
||||
> A zsh builtin to indicate how a given command would be interpreted.
|
||||
> More information: <https://www.unix.com/man-page/OpenSolaris/1/whence/>.
|
||||
|
||||
- Interpret {{command}}, with expansion if defined as an `alias` (similar to the `command -v` builtin):
|
||||
|
||||
`whence {{command}}`
|
||||
`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}}`
|
||||
`whence -v "{{command}}"`
|
||||
|
||||
- Same as above, except display content of shell functions instead of location (equivalent to `which` builtin):
|
||||
|
||||
`whence -c {{command}}`
|
||||
`whence -c "{{command}}"`
|
||||
|
||||
- Same as above, but show all occurrences on command path (equivalent to the `where` builtin):
|
||||
|
||||
`whence -ca {{command}}`
|
||||
`whence -ca "{{command}}"`
|
||||
|
||||
- Search only the `PATH` for {{command}}, ignoring builtins, aliases or shell functions (equivalent to the `where` command):
|
||||
|
||||
`whence -p {{command}}`
|
||||
`whence -p "{{command}}"`
|
||||
|
Reference in New Issue
Block a user