From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: stylistic override to _deb_packages
Date: 30 Jan 2000 10:20:54 +0900 [thread overview]
Message-ID: <rsqiu0cs6bt.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: Clint Adams's message of "Sat, 29 Jan 2000 17:37:22 -0500"
In article <20000129173722.A13963@scowler.net>,
Clint Adams <schizo@debian.org> writes:
> - _deb_packages_updage_$command
> + _deb_packages_updage_$pkgset
Oops. `updage' is my typo.
Index: Completion/Debian/_deb_packages
===================================================================
RCS file: /projects/zsh/zsh/Completion/Debian/_deb_packages,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 _deb_packages
--- Completion/Debian/_deb_packages 2000/01/30 00:59:22 1.1.1.6
+++ Completion/Debian/_deb_packages 2000/01/30 01:17:37
@@ -2,7 +2,7 @@
# Usage: _deb_packages expl... avail|installed|uninstalled
-_deb_packages_updage_avail () {
+_deb_packages_update_avail () {
if (( ! $+_deb_packages_cache_uninstalled )); then
_deb_packages_cache_avail=(
${(f)"$(apt-cache dumpavail | awk '/^Package:/ { print $2 }')"}
@@ -11,7 +11,7 @@
cachevar=_deb_packages_cache_avail
}
-_deb_packages_updage_installed () {
+_deb_packages_update_installed () {
if (( ! $+_deb_packages_cache_installed )); then
_deb_packages_cache_installed=(
${${${(f)"$(dpkg --get-selections)"}:#*deinstall}%% *}
@@ -20,9 +20,9 @@
cachevar=_deb_packages_cache_installed
}
-_deb_packages_updage_uninstalled () {
- _deb_packages_updage_avail
- _deb_packages_updage_installed
+_deb_packages_update_uninstalled () {
+ _deb_packages_update_avail
+ _deb_packages_update_installed
if (( ! $+_deb_packages_cache_uninstalled )); then
_deb_packages_cache_uninstalled=(
${_deb_packages_cache_avail:#${(j:|:)~${_deb_packages_cache_installed:q}}}
@@ -49,9 +49,9 @@
expl=("${(@)argv[1,-2]}")
- _deb_packages_updage_$pkgset
+ _deb_packages_update_$pkgset
- _tags packages && compadd "$expl[@]" - "${(e):-"\${(@)$cachevar}"}"
+ _tags packages && compadd "$expl[@]" - "${(@P)cachevar}"
}
_deb_packages "$@"
--
Tanaka Akira
next prev parent reply other threads:[~2000-01-30 1:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-29 22:37 Clint Adams
2000-01-30 1:20 ` Tanaka Akira [this message]
2000-02-01 11:08 ` Alexandre Duret-Lutz
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=rsqiu0cs6bt.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--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).