From: Clint Adams <clint@zsh.org>
To: Jesse W <jessw@netwood.net>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: md5sum completion function
Date: Fri, 28 Sep 2007 04:48:51 -0400 [thread overview]
Message-ID: <20070928084851.GA4372@scowler.net> (raw)
In-Reply-To: <57a435543842b8fbe66c6b160483e197@netwood.net>
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'
next prev parent reply other threads:[~2007-09-28 8:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 6:49 Jesse W
2007-09-28 8:48 ` Clint Adams [this message]
[not found] ` <32b0b2b00e40f419c51b56272f899671@netwood.net>
2007-09-29 22:07 ` Jesse W
2007-10-01 13:17 ` Clint Adams
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=20070928084851.GA4372@scowler.net \
--to=clint@zsh.org \
--cc=jessw@netwood.net \
--cc=zsh-workers@sunsite.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).