1
0
Fork 0
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:
Barton E. Schaefer 2016-06-05 17:37:08 -07:00
parent cabacfff3b
commit 8cca444824
2 changed files with 9 additions and 0 deletions

View file

@ -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.

View file

@ -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;