From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: make _deb_packages handle -J
Date: Sun, 26 Dec 1999 22:05:00 -0500 [thread overview]
Message-ID: <19991226220500.A842@dman.com> (raw)
At some point _dpkg started passing '-J -default-' to _deb_packages,
and _deb_packages didn't like it. Since this is intended as a temporary
solution, the option is not being passed along to compadd.
The result is that _apt and _dpkg will both work with _deb_packages.
Index: Completion/Debian/_deb_packages
===================================================================
RCS file: /cvs/zsh/zsh/Completion/Debian/_deb_packages,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 _deb_packages
--- Completion/Debian/_deb_packages 1999/11/15 12:01:48 1.1.1.3
+++ Completion/Debian/_deb_packages 1999/12/27 02:52:55
@@ -1,6 +1,15 @@
#autoload
+local opt caopts
+
# Usage: _deb_packages installed|uninstalled|avail
+while getopts "J:" opt; do
+ case "$opt" in
+ J) caopts="-J $OPTARG"
+ shift 2 # presume that -J -default- are the first args
+ ;;
+ esac
+done
if (( ! $+_deb_cache_dpkg_get_selections )); then
_deb_cache_dpkg_get_selections=(
next reply other threads:[~1999-12-27 3:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-27 3:05 Clint Adams [this message]
1999-12-27 21:21 ` Tanaka Akira
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=19991226220500.A842@dman.com \
--to=schizo@debian.org \
--cc=zsh-workers@sunsite.auc.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).