about summary refs log tree commit diff
path: root/Src/jobs.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-12-18 11:16:00 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-12-18 11:16:00 +0000
commitb5a0b49dffc9e5a82e77f7bb358c58f4ef5a69ca (patch)
tree8aa7d867199458970e06962060c01bb733e7f200 /Src/jobs.c
parent2c6bf597b909e7325d41ec6b13e845778814610f (diff)
downloadzsh-b5a0b49dffc9e5a82e77f7bb358c58f4ef5a69ca.tar.gz
zsh-b5a0b49dffc9e5a82e77f7bb358c58f4ef5a69ca.tar.xz
zsh-b5a0b49dffc9e5a82e77f7bb358c58f4ef5a69ca.zip
23054, part: error message for "kill -" with nothing after the - was confusing
Diffstat (limited to 'Src/jobs.c')
-rw-r--r--Src/jobs.c4
1 files changed, 4 insertions, 0 deletions
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;