summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-07-10 17:08:00 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-07-10 17:08:00 +0000
commitac223786a1f141e56d89fbab7237b547e70cfbb0 (patch)
treeb0a8ea6167c0e7f622411f90484408e5a92e15a9
parent961876dca4ab10b475ff04d1bc1cf21b929a3495 (diff)
downloadzsh-ac223786a1f141e56d89fbab7237b547e70cfbb0.tar.gz
zsh-ac223786a1f141e56d89fbab7237b547e70cfbb0.tar.xz
zsh-ac223786a1f141e56d89fbab7237b547e70cfbb0.zip
Complete all process IDs for root in _killall, as suggested in 12202 et al.
-rw-r--r--ChangeLog6
-rw-r--r--Completion/User/_killall2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b98178b0..f8183dcf7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-10  Bart Schaefer  <schaefer@zsh.org>
+
+	* unposted: Completion/User/_killall: Complete process IDs and
+	names for all processes when EUID is 0 (root); suggested by
+	Thomas Kohler in 12202 and followups.
+
 2000-07-10  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 12208: Completion/Core/_path_files: avoid insertion of `+'
diff --git a/Completion/User/_killall b/Completion/User/_killall
index b5ec90c8b..ea3e8e2cb 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[@]" ${$(_call processes-names ps ho comm 2> /dev/null):#(ps|COMMAND)} }'
+      'processes:process:{ compadd "$expl[@]" ${$(_call processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho comm 2> /dev/null):#(ps|COMMAND)} }'
 else
   _signals -p
 fi