From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16730 invoked from network); 8 Jul 2000 19:07:36 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Jul 2000 19:07:36 -0000 Received: (qmail 14431 invoked by alias); 8 Jul 2000 19:07:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12205 Received: (qmail 14407 invoked from network); 8 Jul 2000 19:07:21 -0000 Date: Sat, 8 Jul 2000 20:50:01 +0200 From: =?iso-8859-1?Q?Thomas_K=F6hler?= To: zsh-workers@sunsite.auc.dk Subject: Re: _killall on linux Message-ID: <20000708205001.A19889@picard.franken.de> Mail-Followup-To: =?iso-8859-1?Q?Thomas_K=F6hler?= , zsh-workers@sunsite.auc.dk References: <20000708164920.A19816@picard.franken.de> <1000708170205.ZM3781@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <1000708170205.ZM3781@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Sat, Jul 08, 2000 at 07:02:58PM +0200 X-Operating-System: Linux picard.franken.de 2.2.14 X-Editor: VIM - Vi IMproved 5.7a BETA http://www.vim.org/ X-IRC: tirc-1.2; Nick: jeanluc X-URL: http://jeanluc-picard.de/ --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 08, 2000 at 07:02:58PM +0200, Bart Schaefer wrote: >=20 > On Jul 8, 4:49pm, Thomas K=F6hler 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) >=20 > We could put something like that [*] in, but you should note that this > can already be configured via a style in root's .zshrc: >=20 > zstyle ':completion:*:processes-names' command ps xa ho comm Uhm. Cool. :-) > Making that configurable is the reason for the $(_call ...) expression. Ah... I seem to get the idea... > 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".) Don't know, but it's consistent :) _pid calls this: "... _call processes-list ..." > [*] Rather than $( [[ "$UID" =3D 0 ]] && print -n xa ) I'd suggest the le= ss > resource-intensive ${=3DEUID//(#s)0(#e)/ps xa}. Well, seen your fixed version (other mail) already: ${${EUID/(#s)0(#e)/xa}//[0-9]#/} Well - could this go in? Would save quite a few linux users some .zshrc editing :-) CU, Thomas P.S.: No need to Cc me, I'm also subscribed to zsh-workers (I'd call myself a very passive member of this list ;-)) --=20 Thomas K=F6hler Email: jean-luc@picard.franken.de | LCARS - Linux <>< WWW: http://jeanluc-picard.de | for Computers IRC: jeanluc | on All Real PGP public key available from Homepage! | Starships --sm4nu43k4a2Rpi4c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE5Z3fZTEYXWMJlHuYRAmMVAJ9N9vyP8W6QSDKHGRyPnkToxtkm5wCaAw+W 75eh9mvGaikxkZWqbPQH1bg= =XFf7 -----END PGP SIGNATURE----- --sm4nu43k4a2Rpi4c--