1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

Complete all process IDs for root in _killall, as suggested in 12202 et al.

This commit is contained in:
Bart Schaefer 2000-07-10 17:08:00 +00:00
parent 961876dca4
commit ac223786a1
2 changed files with 7 additions and 1 deletions

@ -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 `+'

@ -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