From: "Jörg Sommer" <joerg@alea.gnuu.de>
To: zsh-workers@sunsite.dk
Subject: Re: [PATCH] Completion for chrt and ionice
Date: Fri, 3 Oct 2008 01:11:03 +0000 (UTC) [thread overview]
Message-ID: <slrngeas97.1r3.joerg@alea.gnuu.de> (raw)
In-Reply-To: <slrngdfjd7.1rn.joerg@alea.gnuu.de>
Hallo,
Jörg Sommer <joerg@alea.gnuu.de> wrote:
> commit e2da3b57bfa4145811aa3b3921edb329b7bef1f7
> Author: Jörg Sommer <joerg@alea.gnuu.de>
> Date: Mon Sep 22 16:54:28 2008 +0200
>
> The pid for -p must follow the option
>
> The process ID is the mandatory argument of the -p option.
>
> diff --git a/Completion/Linux/Command/_ionice b/Completion/Linux/Command/_ionice
> index fd49dcd..b7cd21b 100644
> --- a/Completion/Linux/Command/_ionice
> +++ b/Completion/Linux/Command/_ionice
> @@ -1,23 +1,12 @@
> #compdef ionice
>
> -local context state line
> -typeset -A opt_args
> -
> _arguments \
> '(* -)-h[display usage information]' \
> - '-p[interpret args as process ID]' \
> + '(*)-p[interpret args as process ID]:pid:_pids' \
^^^^^^^^^^
Why this is missing in 25717?
> '-c[scheduling class]:class:(( 1\:realtime 2\:best-effort 3\:idle ))' \
> '-n[scheduling class priority]:class-pririty:((
> 0\:high\ priority
> {6..1}\:
> 7\:low\ priority
> ))' \
> - '*::command or pid:->cmd_or_prio' \
> - && return 0
> -
> -if (( $+opt_args[-p] ))
> -then
> - _pids
> -else
> - _normal
> -fi
> + '*::command:_normal'
Bye, Jörg.
--
Computer Science is no more about Computers than astronomy is about
telescopes.
(Edsger Wybe Dijkstra)
next prev parent reply other threads:[~2008-10-03 1:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-21 13:59 Jörg Sommer
2008-09-22 16:53 ` Jörg Sommer
2008-09-23 5:28 ` Clint Adams
2008-10-03 1:11 ` Jörg Sommer [this message]
2008-10-03 2:32 ` Clint Adams
2008-10-03 16:07 ` Jörg Sommer
2008-10-04 18:15 ` Clint Adams
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=slrngeas97.1r3.joerg@alea.gnuu.de \
--to=joerg@alea.gnuu.de \
--cc=zsh-workers@sunsite.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).