Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] zshbuiltins(1): Document 'which''s "not found is not an error" behaviour.
- X-seq: zsh-workers 43528
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] zshbuiltins(1): Document 'which''s "not found is not an error" behaviour.
- Date: Mon, 24 Sep 2018 13:22:07 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=EeQb6Jwo5Iu4rVAL+d8CsxY1TR2CwtebZS5JhssO4SA=; b=WDThZlfC HvnORdKAvhhAJAsUr8HcE5PFKCWCS6339RkMEzaa+FWuKpnDaf3hsKdxTqCUSO6R bLPpZrixe/mlbM+/1PUVB4ZDU9VsGrqLyR3GUTQ4wWcWT8tbxA0hYll7wbKAA5Wp WyoQufdIYkmuJ4DTRXp+qB1qhOMnKVk5bZMAM9+DUaA5/1W55WAQA8Q8j/EnPmNp 6Tx/RuE7LrKdQ0XjkLs+l+8DDXFwMZ1erXG+SrXTlKYp7jCde25qySuXcmt/6DJ2 Kns6D8nsGrG21w95pKd8YxqkI3iJcNnVCPeErJA7Q0mGfDuE254HBISrdvfDY8or Bg8Ew2/baUsgow==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=EeQb6Jwo5Iu4rVAL+d8CsxY1TR2CwtebZS5JhssO4SA=; b=CRpanY+6 9wDOhkzgKh5kLjsHmWgWdp0818mvlK/Q1PIXWRMuel+VsraHUgQ2BKqsYLxsHd4R jGLxZElHOfOL+lnPgWZxk4pO8cqSUXuB0oNMjVWXM+GHv/mOadAPY4qB1ZyAoqt8 bqCT9KRHDIf4IkBa0P9eVKfmVC4EJsYuIEnicMHCw1aF496hWZg7tFADf+lryemt A8toU15ZxjBDEwgYndB93dSmsEZzQUtsCho2P8FBNJ6lZwktYJJih4YykeuF05J9 6x91fPTG+sU1mE9kAxyQUSVaZUyw+o5VST6vm1sYykQvFhXnhATfBrrG322fXE3v eRKL+omwxbYoqQ==
- In-reply-to: <20180924125126eucas1p2e4ae5b63ce6320957ee99737f93181ae~XVwcoX7b91518615186eucas1p2T@eucas1p2.samsung.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180924125126eucas1p2e4ae5b63ce6320957ee99737f93181ae~XVwcoX7b91518615186eucas1p2T@eucas1p2.samsung.com>
---
Doc/Zsh/builtins.yo | 6 ++++++
1 file changed, 6 insertions(+)
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author