diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Completion/Debian/Command/_dpkg | 2 | ||||
-rw-r--r-- | Completion/Debian/Command/_update-alternatives | 12 |
3 files changed, 14 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog index 811074398..734b2408a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-05-29 Clint Adams <clint@zsh.org> + + * 14533: Completion/Debian/Command/_dpkg, + Completion/Debian/Command/_update-alternatives: + use "= ->" for states expecting positional + parameters. + 2001-05-29 Sven Wischnowsky <wischnow@zsh.org> * 14530: Completion/compinit, diff --git a/Completion/Debian/Command/_dpkg b/Completion/Debian/Command/_dpkg index 3fd970ffa..65fd4b827 100644 --- a/Completion/Debian/Command/_dpkg +++ b/Completion/Debian/Command/_dpkg @@ -58,7 +58,7 @@ _dpkg_actions=('(--install)-i[install packages]:*:Debian packages:->install' \ '--print-architecture[print target architecture]' \ '--print-gnu-build-architecture[print GNU version of target architecture]' \ '--print-installation-architecture[print host architecture]' \ - '--compare-versions[compare version numbers]:*:expression:->compare_versions') + '--compare-versions[compare version numbers]:*::expression:= ->compare_versions') _dpkg_options=('--abort-after[abort after errors]:number of errors:' \ '--admindir=[data directory]:directory:_files -/' \ diff --git a/Completion/Debian/Command/_update-alternatives b/Completion/Debian/Command/_update-alternatives index 2f5c5fe47..1bf195828 100644 --- a/Completion/Debian/Command/_update-alternatives +++ b/Completion/Debian/Command/_update-alternatives @@ -10,11 +10,11 @@ _arguments -C '--verbose' \ '--version' \ '--altdir:altdir:_files -/' \ '--admindir:admindir:_files -/' \ - '--install:*::alt:->install' \ - '--remove:*::alt:->remove' \ - '--auto:altname:_files -W /var/lib/dpkg/alternatives' \ - '--display:altname:_files -W /var/lib/dpkg/alternatives' \ - '--config:altname:_files -W /var/lib/dpkg/alternatives' && return 0 + '--install:*::alt:= ->install' \ + '--remove:*::alt:= ->remove' \ + '--auto:name:_files -W /var/lib/dpkg/alternatives' \ + '--display:name:_files -W /var/lib/dpkg/alternatives' \ + '--config:name:_files -W /var/lib/dpkg/alternatives' && return 0 _call_function ret _update_alternatives_$state && return ret case "$state" in @@ -34,7 +34,7 @@ case "$state" in remove) _arguments \ - '1:altname:_files -W /var/lib/dpkg/alternatives' \ + '1:name:_files -W /var/lib/dpkg/alternatives' \ '2:path:_files' ;; |