* PATCH: md5sum completion function
@ 2007-09-28 6:49 Jesse W
2007-09-28 8:48 ` Clint Adams
0 siblings, 1 reply; 4+ messages in thread
From: Jesse W @ 2007-09-28 6:49 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 161 bytes --]
Here is a completion function for the md5sum tool (the version included
with the dpkg project).
Let me know if there is any other information I should provide.
[-- Attachment #2: _md5sum --]
[-- Type: application/octet-stream, Size: 464 bytes --]
#compdef md5sum
#descriptions copied from dpkg's version of md5sum's output.
#dpkg's version is in the public domain.
#Written by Jesse Weinstein <jessw@netwood.net>
#Thu Sep 27 23:42:28 2007
#Released into the public domain.
_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"
[-- Attachment #3: Type: text/plain, Size: 17 bytes --]
Jesse Weinstein
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PATCH: md5sum completion function
2007-09-28 6:49 PATCH: md5sum completion function Jesse W
@ 2007-09-28 8:48 ` Clint Adams
[not found] ` <32b0b2b00e40f419c51b56272f899671@netwood.net>
0 siblings, 1 reply; 4+ messages in thread
From: Clint Adams @ 2007-09-28 8:48 UTC (permalink / raw)
To: Jesse W; +Cc: zsh-workers
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'
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PATCH: md5sum completion function
[not found] ` <32b0b2b00e40f419c51b56272f899671@netwood.net>
@ 2007-09-29 22:07 ` Jesse W
2007-10-01 13:17 ` Clint Adams
1 sibling, 0 replies; 4+ messages in thread
From: Jesse W @ 2007-09-29 22:07 UTC (permalink / raw)
To: zsh-workers; +Cc: Clint Adams
On Sep 28, 2007, at 1:48 AM, Clint Adams wrote:
> 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?
Thanks for doing that; I used the dpkg md5sum because it was the one
included with the version of
dpkg installed by Fink (at least, the somewhat old version I have).
I'm updating my Fink installation now, I'll see if it's removed in the
new version (or replaced by the GNU md5sum).
Jesse Weinstein
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PATCH: md5sum completion function
[not found] ` <32b0b2b00e40f419c51b56272f899671@netwood.net>
2007-09-29 22:07 ` Jesse W
@ 2007-10-01 13:17 ` Clint Adams
1 sibling, 0 replies; 4+ messages in thread
From: Clint Adams @ 2007-10-01 13:17 UTC (permalink / raw)
To: Jesse W; +Cc: zsh-workers
On Sat, Sep 29, 2007 at 03:07:31PM -0700, Jesse W wrote:
> Thanks for doing that; I used the dpkg md5sum because it was the one
> included with the version of
> dpkg installed by Fink (at least, the somewhat old version I have). I'm
> updating my Fink installation now, I'll see if it's removed in the new
> version (or replaced by the GNU md5sum).
Okay, if the Fink people are clinging onto it, we can use _pick_variant.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-01 13:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-28 6:49 PATCH: md5sum completion function Jesse W
2007-09-28 8:48 ` Clint Adams
[not found] ` <32b0b2b00e40f419c51b56272f899671@netwood.net>
2007-09-29 22:07 ` Jesse W
2007-10-01 13:17 ` Clint Adams
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).