From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11570 invoked from network); 10 Jul 2000 07:14:30 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Jul 2000 07:14:30 -0000 Received: (qmail 25065 invoked by alias); 10 Jul 2000 07:13:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12207 Received: (qmail 25055 invoked from network); 10 Jul 2000 07:13:57 -0000 Date: Mon, 10 Jul 2000 09:13:55 +0200 (MET DST) Message-Id: <200007100713.JAA18387@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: "Bart Schaefer"'s message of Sat, 8 Jul 2000 17:02:05 +0000 Subject: Re: _killall on linux Bart Schaefer wrote: > On Jul 8, 4:49pm, Thomas Köhler wrote: > } Subject: _killall on linux > } > } Now, the problem is: _killall won't complete all process names. This is > } not a big deal for "normal" users, but root may have to kill other > } user's processes, too. May I suggest something like this (completing > } _all_ process names for super users) > > We could put something like that [*] in, but you should note that this > can already be configured via a style in root's .zshrc: > > zstyle ':completion:*:processes-names' command ps xa ho comm > > Making that configurable is the reason for the $(_call ...) expression. > > It's a bit weird that it's "processes-names" rather than "process-names". > (Was there some reason for that? It's not completing both processes and > names, and one doesn't normally use the possessive "processes' names" to > refer to "names of processes".) It doesn't have anything to do with real english -- it's just the tag used with some strings appended, to make it easier to remember them. At least I thought it would be easier... > [*] Rather than $( [[ "$UID" = 0 ]] && print -n xa ) I'd suggest the less > resource-intensive ${=EUID//(#s)0(#e)/ps xa}. I wouldn't be agains that patch. But I think it raises the question if we should add other default for some systems, such as -u$USER. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de