Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] rewrite _killall
- X-seq: zsh-workers 43110
- From: dana <dana@xxxxxxx>
- To: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] rewrite _killall
- Date: Thu, 28 Jun 2018 09:52:05 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Kna+gF6DP4szEv7RNOKs3KiflUPMhRhOb6F1g5abBBs=; b=r4jFFlCrqm/QRkz4W+dzBkUL3XeZ5FmeBIYZgYbggTg27CWJDSeQSRdu2+s1nT8vb6 ug07unaoPSGXHesy7xOg3fA5kVWRe3OCZJkvxfwTCBh2EbE+GT4jxSfVBrc5waKzswur wZ5s574nVf6TKs6yF/5qqeDEoxsMW/XRsqLrFET2tavZcVcqI4TY7+QoctLp9AAIzRFf 0OrcOWXTA+2QnsZ3HxgZGfONAPicvhcv0clIak6VyfN17vbEFM0749m6FOR6Ylc/TEEP oz+d3T/8Zj89vcGrk0raVN77+wyuULHk+SQRFq3PyRy91+FjdB6GToUi8adePmj5vP89 uTNg==
- In-reply-to: <C3A7A339-300C-4D7A-8F24-5165BB927115@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <C3A7A339-300C-4D7A-8F24-5165BB927115@kba.biglobe.ne.jp>
On 28 Jun 2018, at 02:39, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>+if _pick_variant psmisc=PSmisc unix --version; then
Is this OK? I know it's checking for killall5/Solaris early on, but is there any
possibility that a SysV-style killall could slip past that check? Maybe that's
overly paranoid, idk.
On 28 Jun 2018, at 02:39, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>+ '(-n --ns)'{-n,--ns}'[match against the PID namespace of the given PID]:pid: _pids'
Trivial thing, but it seems preferable to let _pids, _signals, &c., handle their
descriptions unless there's a specific need to override them, yeah?
On 28 Jun 2018, at 02:39, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>+ '(-g --process-group)'{-g,--process-group}'[kill the process group to which the process blongs]'
>+ '(-s --signal)'{-s,--signal}'[send the speified signal]:signal:_signals'
>+ '-m[interprit specified name as a regular expression]'
>+ '-s[show only what will be done, but do notsend any signal]'
Some typos here:
* blongs -> belongs
* speified -> specified
* interprit -> interpret
* notsend -> not send
On 28 Jun 2018, at 02:39, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>'(-u --user)'{-u,--user}'[kill only processes owned by specified user]: : _users'
>+ '-u[limit to processes belonging to specified user]: :_users'
These should all be in -o+ and --opt= form, i'd think.
On 28 Jun 2018, at 02:39, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>+ _arguments -s -S : $args
`-A '-*'` would be appropriate for this one.
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author