From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8368 invoked from network); 5 Sep 1999 15:08:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Sep 1999 15:08:56 -0000 Received: (qmail 17014 invoked by alias); 5 Sep 1999 15:08:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7646 Received: (qmail 17003 invoked from network); 5 Sep 1999 15:08:46 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: _apt-get and _deb_packages References: <87u2pbu49r.fsf@zxmjz18.extern.uni-tuebingen.de> <19990904104942.B17943@dman.com> MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 06 Sep 1999 00:08:40 +0900 In-Reply-To: Clint Adams's message of "Sat, 4 Sep 1999 10:49:42 -0400" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article <19990904104942.B17943@dman.com>, Clint Adams writes: > I don't think so. I frequently use 'install' to upgrade a set of > packages that are already installed. Hm. I modified _apt-get to complete installed packages if current word doesn't match uninstalled packages. Index: Completion/Debian/_apt-get =================================================================== RCS file: /projects/zsh/zsh/Completion/Debian/_apt-get,v retrieving revision 1.1.1.2 diff -u -F^( -r1.1.1.2 _apt-get --- _apt-get 1999/09/03 23:19:14 1.1.1.2 +++ _apt-get 1999/09/05 15:06:12 @@ -30,7 +30,7 @@ compadd "$@" - update upgrade dselect-upgrade dist-upgrade install remove source check clean autoclean help else case "$words[1]" in - install) _deb_packages uninstalled "$@";; + install) _deb_packages uninstalled "$@" || _deb_packages installed "$@";; remove) _deb_packages installed "$@";; *) _deb_packages avail "$@";; esac -- Tanaka Akira