Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Fix file name completion of GNU digest utilities



If summing option(--tag, --binary, --text, --zero) is specified, file name
couldn't be completed. Because current implementation that operand is grouped
at 'chk' group and 'chk' group options are not completed when summing option
is specified. This change adds group for operands and fix this issue.
---
 Completion/Unix/Command/_md5sum | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_md5sum b/Completion/Unix/Command/_md5sum
index 3dfcd6322..e0de826a7 100644
--- a/Completion/Unix/Command/_md5sum
+++ b/Completion/Unix/Command/_md5sum
@@ -45,6 +45,9 @@ args+=(
   '(sum -w --status --warn)'{-w,--warn}'[warn about each improperly formatted checksum line]'
 )
 # Operands
-args+=( '*: :_files' )
+args+=(
+  + operand
+  '*: :_files'
+)
 
 _arguments -s -S : $args
-- 
2.30.2





Messages sorted by: Reverse Date, Date, Thread, Author