1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-28 10:21:09 +02:00

43528: zshbuiltins(1): Document 'which''s "not found is not an error" behaviour.

This commit is contained in:
Daniel Shahaf 2018-09-24 13:22:07 +00:00
parent cbcf6d1864
commit 3f2bcceec8
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2018-09-25 Daniel Shahaf <d.s@daniel.shahaf.name>
* 43528: Doc/Zsh/builtins.yo: zshbuiltins(1): Document 'which''s
"not found is not an error" behaviour.
2018-09-25 Oliver Freyermuth <o.freyermuth@xxxxxxxxxxxxxx>
* 43554 (tweaked): Completion/X/Command/_zathura: Fix zathura

View file

@ -2373,6 +2373,12 @@ item(tt(whence) [ tt(-vcwfpamsS) ] [ tt(-x) var(num) ] var(name) ...)(
For each var(name), indicate how it would be interpreted if used as a
command name.
If var(name) is not an alias, built-in command, external command, shell
function, hashed command, or a reserved word, the exit status shall be
non-zero, and DASH()- if tt(-v), tt(-c), or tt(-w) was passed DASH()- a message
will be written to standard output. (This is different from other shells that
write that message to standard error.)
tt(whence) is most useful when var(name) is only the last path component
of a command, i.e. does not include a `tt(/)'; in particular, pattern
matching only succeeds if just the non-directory component of the command is