diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/jobs.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 193173101..8e02b7863 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/Src/jobs.c b/Src/jobs.c index 12e0a16f3..77dbf51c9 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -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; |