zsh-workers
 help / color / mirror / code / Atom feed
From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: _killall on linux
Date: Sat, 8 Jul 2000 20:50:01 +0200	[thread overview]
Message-ID: <20000708205001.A19889@picard.franken.de> (raw)
In-Reply-To: <1000708170205.ZM3781@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Sat, Jul 08, 2000 at 07:02:58PM +0200

[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]

On Sat, Jul 08, 2000 at 07:02:58PM +0200,
Bart Schaefer <schaefer@candle.brasslantern.com> 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

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" = 0 ]] && print -n xa ) I'd suggest the less
> resource-intensive ${=EUID//(#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 ;-))

-- 
 Thomas Köhler 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

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2000-07-08 19:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-08 14:49 Thomas Köhler
2000-07-08 17:02 ` Bart Schaefer
2000-07-08 17:25   ` Bart Schaefer
2000-07-08 18:50   ` Thomas Köhler [this message]
2000-07-10  7:13 Sven Wischnowsky
2000-07-10  9:31 ` Bart Schaefer
2000-07-10  9:43 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000708205001.A19889@picard.franken.de \
    --to=jean-luc@picard.franken.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).