mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-27 10:26:05 +02:00
23054, part: error message for "kill -" with nothing after the - was confusing
This commit is contained in:
parent
2c6bf597b9
commit
b5a0b49dff
|
@ -1,3 +1,8 @@
|
|||
2006-12-18 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 23054, part: Src/jobs.c: error message for "kill -" with
|
||||
no option or signal name was confusing.
|
||||
|
||||
2006-12-17 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 23060: Doc/Makefile.in: make everything makes info.
|
||||
|
|
|
@ -2027,6 +2027,10 @@ bin_kill(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
|
|||
return 1;
|
||||
} else
|
||||
signame = *argv;
|
||||
if (!*signame) {
|
||||
zwarnnam(nam, "-: signal name expected");
|
||||
return 1;
|
||||
}
|
||||
signame = casemodify(signame, CASMOD_UPPER);
|
||||
if (!strncmp(signame, "SIG", 3))
|
||||
signame+=3;
|
||||
|
|
Loading…
Reference in New Issue