zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: _killall on linux
Date: Mon, 10 Jul 2000 09:13:55 +0200 (MET DST)	[thread overview]
Message-ID: <200007100713.JAA18387@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Sat, 8 Jul 2000 17:02:05 +0000

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]


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


             reply	other threads:[~2000-07-10  7:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-10  7:13 Sven Wischnowsky [this message]
2000-07-10  9:31 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2000-07-10  9:43 Sven Wischnowsky
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

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=200007100713.JAA18387@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.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).