zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: make _deb_packages handle -J
@ 1999-12-27  3:05 Clint Adams
  1999-12-27 21:21 ` Tanaka Akira
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 1999-12-27  3:05 UTC (permalink / raw)
  To: zsh-workers

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=(


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-27 21:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-27  3:05 PATCH: make _deb_packages handle -J Clint Adams
1999-12-27 21:21 ` Tanaka Akira

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).