summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Test/B11kill.ztst9
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d48d787c..162bde6b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2020-02-18 Chris Down <chris@chrisdown.name>
+ * 45452: Test/B11kill.ztst: builtins: kill: Add `kill ''`
+ regression test with explicit sigspec
+
* 45451: Test/B11kill.ztst: builtins: kill: Add basic test suite
2020-02-17 brian m. carlson <sandals@crustytoothpaste.net>
diff --git a/Test/B11kill.ztst b/Test/B11kill.ztst
index 26d7a11fe..957a7b385 100644
--- a/Test/B11kill.ztst
+++ b/Test/B11kill.ztst
@@ -58,3 +58,12 @@
)
1:kill with sigspec only
?(eval):kill:2: not enough arguments
+
+# Regression tests: `kill ''` should not result in `kill 0`.
+
+ (
+ trap 'exit 11' URG
+ kill -URG ''
+ )
+1f:kill with empty pid and sigspec should not send signal to current process group
+?(eval):kill:3: illegal pid: