* [PATCH] Include the builtin's name in a "bad option" error message.
@ 2016-01-10 19:55 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2016-01-10 19:55 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-10 19:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-10 19:55 [PATCH] Include the builtin's name in a "bad option" error message Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).