about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-09-28 08:51:33 +0000
committerClint Adams <clint@users.sourceforge.net>2007-09-28 08:51:33 +0000
commitb0f8a1eefa9a723f09f56cca26249296e4f54682 (patch)
treec1dfdac5acb8c9a4f552ba54ae4499e83cae6000
parenta5203292f3bbf7aa0720cf3c938ef4f9b114c3a0 (diff)
downloadzsh-b0f8a1eefa9a723f09f56cca26249296e4f54682.tar.gz
zsh-b0f8a1eefa9a723f09f56cca26249296e4f54682.tar.xz
zsh-b0f8a1eefa9a723f09f56cca26249296e4f54682.zip
23850: complete for GNU md5sum instead.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_md5sum14
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 216bee2c7..c17ff9d42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-09-28  Clint Adams  <clint@zsh.org>
 
+	* 23850: Completion/Unix/Command/_md5sum: complete for GNU md5sum
+	instead.
+
 	* Jesse Weinstein: 23848: Completion/Unix/Command/_md5sum:
 	completion for md5sum.
 
diff --git a/Completion/Unix/Command/_md5sum b/Completion/Unix/Command/_md5sum
index 0d0076292..2351d1abd 100644
--- a/Completion/Unix/Command/_md5sum
+++ b/Completion/Unix/Command/_md5sum
@@ -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'