From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17374 invoked from network); 23 Apr 2009 12:33:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Apr 2009 12:33:20 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 37740 invoked from network); 23 Apr 2009 12:33:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Apr 2009 12:33:15 -0000 Received: (qmail 22685 invoked by alias); 23 Apr 2009 12:33:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26877 Received: (qmail 22666 invoked from network); 23 Apr 2009 12:33:08 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 23 Apr 2009 12:33:08 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 687CA8028C72 for ; Thu, 23 Apr 2009 14:31:49 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id A1BDF10494A; Thu, 23 Apr 2009 12:33:01 +0000 (UTC) Date: Thu, 23 Apr 2009 12:33:01 +0000 From: Clint Adams To: Colin Watson , 525215@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#525215: zsh: apt-get now has a purge subcommand Message-ID: <20090423123301.GA3132@scru.org> Mail-Followup-To: Colin Watson , 525215@bugs.debian.org, zsh-workers@sunsite.dk References: <20090422231026.GX7367@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090422231026.GX7367@riva.ucam.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV 0.92.1/9278/Thu Apr 23 12:14:48 2009 on bifrost X-Virus-Status: Clean On Thu, Apr 23, 2009 at 12:10:31AM +0100, Colin Watson wrote: > apt-get now has a 'purge' subcommand, as a shorthand for 'remove > --purge'. Please add support for it to > /usr/share/zsh/functions/Completion/Debian/_apt. I think it should be > identical to the handling for 'remove', since 'apt-get purge' (buggily?) > doesn't support being given packages that are removed but not purged. Thanks. Index: Completion/Debian/Command/_apt =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_apt,v retrieving revision 1.15 diff -u -r1.15 _apt --- Completion/Debian/Command/_apt 2 Nov 2008 14:12:29 -0000 1.15 +++ Completion/Debian/Command/_apt 23 Apr 2009 12:31:56 -0000 @@ -427,6 +427,7 @@ /$'install\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \ /$'[^\0/]#/'/ /$'[^\0/]#\0'/ ':release name::_apt_releases' \) \| \ /$'remove\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \ + /$'purge\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" installed' \# \| \ /$'dist-upgrade\0'/ \| \ /$'dselect-upgrade\0'/ \| \ /$'clean\0'/ \| \