From 5731581c4ce8dc9a918445f6bbac2051674ee4b5 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 10 Jan 2016 19:55:28 +0000 Subject: 37551: Include the builtin's name in a "bad option" error message. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example: «zsh -fc 'zle -z'» now prepends "zle:" to the error message. --- Src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 5dce2d9f1..e1a799009 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; -- cgit 1.4.1