Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 3.1.9, bug in apt-get completion?
- X-seq: zsh-users 3130
- From: Tanaka Akira <akr@xxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: 3.1.9, bug in apt-get completion?
- Date: 08 Jun 2000 12:00:08 +0900
- In-reply-to: <87og5d2mvp.fsf@xxxxxxxxxxxxxxxxxxxx> (Bruce Stephens's message of "07 Jun 2000 22:37:46 +0100")
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <87og5d2mvp.fsf@xxxxxxxxxxxxxxxxxxxx>
In article <87og5d2mvp.fsf@xxxxxxxxxxxxxxxxxxxx>,
Bruce Stephens <bruce+zsh@xxxxxxxxxxxxxxxxxxxx> writes:
> # exec zsh -f
> # autoload -U compinit
> # compinit
> # apt-get install a<TAB>
> _alternative:-1: parse error near `||'
> _alternative:70: command not found: _
Following patch should fix it.
Index: Completion/Debian/_apt
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/_apt,v
retrieving revision 1.6
diff -u -r1.6 _apt
--- Completion/Debian/_apt 2000/05/19 08:26:48 1.6
+++ Completion/Debian/_apt 2000/06/08 02:57:22
@@ -371,7 +371,7 @@
-- \
/$'update\0'/ \| \
/$'upgrade\0'/ \| \
- /$'install\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" uninstalled || _deb_packages "$expl_packages[@]" installed' \# \| \
+ /$'install\0'/ /$'[^\0]#\0'/ ':packages::{ _deb_packages "$expl_packages[@]" uninstalled || _deb_packages "$expl_packages[@]" installed }' \# \| \
/$'remove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \
/$'dist-upgrade\0'/ \| \
/$'dselect-upgrade\0'/ \| \
@@ -410,12 +410,12 @@
/$'add\0'/ /$'[^\0]#\0'/ ':files:index files:_files "$expl[@]"' \# \| \
/$'gencaches\0'/ \| \
/$'showpkg\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
- /$'stats\0'=$status[4]/ \| \
+ /$'stats\0'/ \| \
/$'dump\0'/ \| \
/$'dumpavail\0'/ \| \
/$'unmet\0'/ \| \
/$'check\0'/ \| \
- /$'search\0'/ /$'[^\0]#\0'/ ':strings::_message "pattern"' \| \
+ /$'search\0'/ /$'[^\0]#\0'/ ':strings:pattern:' \| \
/$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
/$'depends\0'/ \| \
/"[]"/ ':argument-1::compadd "$expl_action[@]" help add gencaches showpkg stats dump dumpavail unmet check search show depends'
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author