about summary refs log tree commit diff
path: root/Doc/Zsh/builtins.yo
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-24 13:22:07 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-25 23:29:06 +0000
commit3f2bcceec86bc11f5e5b1d116e6bd5fe063b076b (patch)
tree994787dfe802f033f32f02f39d2843ce2e46862f /Doc/Zsh/builtins.yo
parentcbcf6d18648fad927fc0b193afb94e59f0bb6c21 (diff)
downloadzsh-3f2bcceec86bc11f5e5b1d116e6bd5fe063b076b.tar.gz
zsh-3f2bcceec86bc11f5e5b1d116e6bd5fe063b076b.tar.xz
zsh-3f2bcceec86bc11f5e5b1d116e6bd5fe063b076b.zip
43528: zshbuiltins(1): Document 'which''s "not found is not an error" behaviour.
Diffstat (limited to 'Doc/Zsh/builtins.yo')
-rw-r--r--Doc/Zsh/builtins.yo6
1 files changed, 6 insertions, 0 deletions
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