From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19185 invoked from network); 28 Sep 2007 08:49:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) 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.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Sep 2007 08:49:10 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 63372 invoked from network); 28 Sep 2007 08:49:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Sep 2007 08:49:02 -0000 Received: (qmail 11430 invoked by alias); 28 Sep 2007 08:48:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23850 Received: (qmail 11415 invoked from network); 28 Sep 2007 08:48:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Sep 2007 08:48:58 -0000 Received: (qmail 63067 invoked from network); 28 Sep 2007 08:48:58 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 28 Sep 2007 08:48:52 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 439145C2CC; Fri, 28 Sep 2007 04:48:50 -0400 (EDT) Date: Fri, 28 Sep 2007 04:48:51 -0400 From: Clint Adams To: Jesse W Cc: zsh-workers@sunsite.dk Subject: Re: PATCH: md5sum completion function Message-ID: <20070928084851.GA4372@scowler.net> Mail-Followup-To: Jesse W , zsh-workers@sunsite.dk References: <57a435543842b8fbe66c6b160483e197@netwood.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57a435543842b8fbe66c6b160483e197@netwood.net> User-Agent: Mutt/1.5.16 (2007-06-11) On Thu, Sep 27, 2007 at 11:49:36PM -0700, Jesse W wrote: > Here is a completion function for the md5sum tool (the version included > with the dpkg project). This updates it for GNU md5sum. The dpkg md5sum was dropped in 2006; do people still use it? Index: Completion/Unix/Command/_md5sum =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_md5sum,v retrieving revision 1.1 diff -u -r1.1 _md5sum --- Completion/Unix/Command/_md5sum 28 Sep 2007 08:42:17 -0000 1.1 +++ Completion/Unix/Command/_md5sum 28 Sep 2007 08:44:18 -0000 @@ -1,9 +1,11 @@ #compdef md5sum _arguments -S \ - "-v[verbose, print file names when checking]" \ - "-b[read files in binary mode]" \ - "(*)-c[check message digests (default is generate)]:md5 digest file:_files -g \*.md5" \ - "(-)*:file to digest:_files" - - + '(-b --binary)'{-b,--binary}'[read in binary mode]' \ + '(-c --check)'{-c,--check}'[read MD5 sums from the FILEs and check them]' \ + '(-t --text)'{-t,--text}'[read in text mode]' \ + '--status[no output, status code shows success]' \ + '(-w --warn)'{-w,--warn}'[warn about improperly formatted checksum lines]' \ + '--help[display help and exit]' \ + '--version[output version information and exit]' \ + '*:files:_files'