Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Include the builtin's name in a "bad option" error message.
- X-seq: zsh-workers 37551
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Include the builtin's name in a "bad option" error message.
- Date: Sun, 10 Jan 2016 19:55:28 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=b4O4d+heVWcpI3tOtvaoy3lFiZo=; b=gJCtUn /wqyWinwJI/gQHy0/jR37ojKk5iJZPgdtRz387fx3eGbAYKYBgExFMrSfT7UmxKJ 1VS/XJkDNZ2k/xE73URJ99UkNPiAymCg+aKQSmUOlewqNyFe2q/butnJBld1NC/H Ll0IXj5GTNYdm1P1PydUDEIpyBHYVxYi/sMUg=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=b4O4d+heVWcpI3tOtvaoy3lFiZo=; b=TcixS 3mian1x3ocGoWrrUH/9pnQVVLLl+dS2qf5WSCU8mu0GPuxQ4xQd7fcX4rP5j/wOK nq7LBbm6RmIlw9h6dJFQ5POExBB8RMyXNGWObYIRjovhleaEvm2AKBtgVQZN3lVo uxmX92x22OOSZT7oeR8Z3Aa5WJhFlOSscak5hQ=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Example: «zsh -fc 'zle -z'» now prepends "zle:" to the error message.
---
Src/builtin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Src/builtin.c b/Src/builtin.c
index b06bc6d..465c8cc 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -387,7 +387,7 @@ execbuiltin(LinkList args, LinkList assigns, Builtin bn)
if (*arg) {
if(*arg == Meta)
*++arg ^= 32;
- zwarn("bad option: -%c", *arg);
+ zwarnnam(name, "bad option: -%c", *arg);
return 1;
}
arg = *++argv;
--
2.1.4
Messages sorted by:
Reverse Date,
Date,
Thread,
Author