mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
38622: consistent handling of "--" in "kill" builtin
This commit is contained in:
parent
cabacfff3b
commit
8cca444824
2 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,9 @@
|
|||
2016-06-05 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 38622: Src/jobs.c: consistent handling of "--" in "kill" builtin
|
||||
|
||||
2016-06-04 Eric Cook <llua@gmx.com>
|
||||
|
||||
* 38547: Completion/compdump: only autoload functions
|
||||
when they exist in fpath.
|
||||
|
||||
|
|
|
@ -2527,6 +2527,10 @@ bin_kill(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
|
|||
argv++;
|
||||
}
|
||||
|
||||
/* Discard the standard "-" and "--" option breaks */
|
||||
if (*argv && (*argv)[0] == '-' && (!(*argv)[1] || (*argv)[1] == '-'))
|
||||
argv++;
|
||||
|
||||
if (!*argv) {
|
||||
zwarnnam(nam, "not enough arguments");
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue