diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-01-10 19:55:28 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-01-10 20:22:37 +0000 |
commit | 5731581c4ce8dc9a918445f6bbac2051674ee4b5 (patch) | |
tree | ca5b3be3fa3148756b3730a5dae50290109f415b /Src | |
parent | 82210cb954cc70708a0e22e6bc8c8ae8c22be749 (diff) | |
download | zsh-5731581c4ce8dc9a918445f6bbac2051674ee4b5.tar.gz zsh-5731581c4ce8dc9a918445f6bbac2051674ee4b5.tar.xz zsh-5731581c4ce8dc9a918445f6bbac2051674ee4b5.zip |
37551: Include the builtin's name in a "bad option" error message.
Example: «zsh -fc 'zle -z'» now prepends "zle:" to the error message.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |