summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-09-23 05:26:53 +0000
committerClint Adams <clint@users.sourceforge.net>2008-09-23 05:26:53 +0000
commitc81fa521148cd4fff43a253e8a8be5fd51e0d8ee (patch)
tree87cea050bc7d82c43b52dd995960041443822c89
parent9ae36771fe34d764aa63d0ca65bae1e3970af4fd (diff)
downloadzsh-c81fa521148cd4fff43a253e8a8be5fd51e0d8ee.tar.gz
zsh-c81fa521148cd4fff43a253e8a8be5fd51e0d8ee.zip
Jörg Sommer: 25717: fixups for 25702.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_ionice17
2 files changed, 8 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b0049306..8c145d868 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-23 Clint Adams <clint@zsh.org>
+
+ * Jörg Sommer: 25717: Completion/Linux/Command/_ionice: fixups for
+ 25702.
+
2008-09-22 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 25723: Src/Zle/zle_main.c: align combining character when
diff --git a/Completion/Linux/Command/_ionice b/Completion/Linux/Command/_ionice
index 7a4060341..205f805a2 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]' \
'-c[scheduling class]:class:(( 1\:realtime 2\:best-effort 3\:idle ))' \
'-n[scheduling class priority]:class-pririty:((
0\:high\ priority
- {1..6}\:
+ {6..1}\:
7\:low\ priority
))' \
- '*::command or pid:->cmd_or_pid' \
- && return 0
-
-if (( $+opt_args[-p] ))
-then
- _pids
-else
- _normal
-fi
+ '*::command:_normal'