From 3f2bcceec86bc11f5e5b1d116e6bd5fe063b076b Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 24 Sep 2018 13:22:07 +0000 Subject: 43528: zshbuiltins(1): Document 'which''s "not found is not an error" behaviour. --- ChangeLog | 5 +++++ Doc/Zsh/builtins.yo | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2f37a0359..e7ebc8aeb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-09-25 Daniel Shahaf + + * 43528: Doc/Zsh/builtins.yo: zshbuiltins(1): Document 'which''s + "not found is not an error" behaviour. + 2018-09-25 Oliver Freyermuth * 43554 (tweaked): Completion/X/Command/_zathura: Fix zathura diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 76b593fd2..0141305b4 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -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 -- cgit 1.4.1