mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-20 06:56:05 +02:00
37551: Include the builtin's name in a "bad option" error message.
Example: «zsh -fc 'zle -z'» now prepends "zle:" to the error message.
This commit is contained in:
parent
82210cb954
commit
5731581c4c
|
@ -1,3 +1,8 @@
|
|||
2016-01-10 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 37551: Src/builtin.c: Include the builtin's name in a "bad
|
||||
option" error message.
|
||||
|
||||
2016-01-10 Eric Cook <llua@gmx.com>
|
||||
* 37534: Matthew Martin: Completion/BSD/Command/_cu,
|
||||
Completion/BSD/Command/_fw_update, Completion/BSD/Command/_rcctl
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue