help / color / mirror / code / Atom feed
* [PATCH] Fix file name completion of GNU digest utilities
@ 2021-09-01  4:38 Shohei YOSHIDA
  0 siblings, 0 replies; only message in thread
From: Shohei YOSHIDA @ 2021-09-01  4:38 UTC (permalink / raw)
  To: zsh-workers; +Cc: Shohei YOSHIDA

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' )
+  + operand
+  '*: :_files'
 _arguments -s -S : $args

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-01  4:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01  4:38 [PATCH] Fix file name completion of GNU digest utilities Shohei YOSHIDA

Code repositories for project(s) associated with this public inbox


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).