about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/User/_killall2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a96726741..8554211d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-27  Clint Adams  <schizo@debian.org>
+
+	* 13314: Completion/User/_killall: ignore commands that begin
+	with hyphens (login shells).
+
 2000-12-26  Clint Adams  <schizo@debian.org>
 
 	* 13312: Completion/User/_killall: get longer command names
diff --git a/Completion/User/_killall b/Completion/User/_killall
index a0f04a38b..2e5b37c3a 100644
--- a/Completion/User/_killall
+++ b/Completion/User/_killall
@@ -3,7 +3,7 @@
 if [[ "$OSTYPE" = linux* ]]; then
   _alternative \
       'signals:: _signals -p' \
-      'processes:process:{ compadd "$expl[@]" ${${${(f)"$(_call processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][]/}:#(ps|COMMAND)}%%\ *} }'
+      'processes:process:{ compadd "$expl[@]" ${${${(f)"$(_call processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][]/}:#(ps|COMMAND|-*)}%%\ *} }'
 else
   _signals -p
 fi