Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Completion for chrt and ionice
- X-seq: zsh-workers 25802
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: [PATCH] Completion for chrt and ionice
- Date: Fri, 3 Oct 2008 01:11:03 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1222996366; i=@xxxxxxxxxxxx; bh=klwzF0VKTB3/iSFhGN5hd7kwzMjq+UqoH hqEQMz7JOE=; h=To:From:Subject:Date:Message-ID:References: Mime-Version:Content-Type:Content-Transfer-Encoding:Sender; b=vJmA tA9XjXxdeG67PgGkuRNlV3Hv/t9MvVNB7kjkgI6TGjHjrMBHF54LF6ZWS0gI3DXp3fF 7leWAUkJXihTGs7wyHE79DRpfrT2p1clSpyz995Z4njiJ7OHodHdIwcr1JUJB3cLsQ7 B+PXts2jwIOMtpGiQsKJpdkuvbNGLGDtI=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <slrngdckpi.23d.joerg@xxxxxxxxxxxx> <slrngdfjd7.1rn.joerg@xxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxx>
Hallo,
Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
> commit e2da3b57bfa4145811aa3b3921edb329b7bef1f7
> Author: Jörg Sommer <joerg@xxxxxxxxxxxx>
> 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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author