summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Type/_signals4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ccc73d567..f0fba72c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-04-04  Peter Stephenson  <pws@csr.com>
 
+	* 18434: Completion/Unix/Type/_signals: -a option was handled the
+	wrong way round so e.g. `kill -' completed pseudo-signals.
+
 	* unposted: Config/version.mk: version 4.1.1-test-1.
 
 	* unposted: corrections to 18433 from Oliver.
diff --git a/Completion/Unix/Type/_signals b/Completion/Unix/Type/_signals
index 5723f4f9c..104efd4f4 100644
--- a/Completion/Unix/Type/_signals
+++ b/Completion/Unix/Type/_signals
@@ -12,9 +12,9 @@ local expl last minus pre sigs
 
 zparseopts -D -K -E 'p=minus' 'a=last' 's=pre'
 if [[ -z "$last" ]]; then
-  last=-1
-else
   last=-3
+else
+  last=-1
 fi
 [[ -n "$minus" ]] && minus='-'