zsh-workers
 help / color / mirror / code / Atom feed
* "od" completion won't complete file names
@ 2014-12-07 19:16 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2014-12-07 19:16 UTC (permalink / raw)
  To: zsh-workers

Noticed while trying to examine those unicode files from Dennis.  The
version-of-od argument list manipulation clobbered the default spec.

diff --git a/Completion/Unix/Command/_od b/Completion/Unix/Command/_od
index 36a9b7d..59775ab 100644
--- a/Completion/Unix/Command/_od
+++ b/Completion/Unix/Command/_od
@@ -19,7 +19,6 @@ args=(
   {-l,-I,-L}'[output decimal longs (-t dL)]'
   {-o,-B}'[output octal shorts (-t o2)]'
   '-s[output decimal shorts (-t d2)]'
-  '*:files:_files'
 )
 
 if _pick_variant gnu=GNU unix --version; then
@@ -49,7 +48,7 @@ else
   esac
 fi
 
-_arguments -C -s -S : "$args[@]" && return 0
+_arguments -C -s -S : "$args[@]" '*:files:_files' && return 0
 
 case "$state" in
   (format)


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

only message in thread, other threads:[~2014-12-07 19:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-07 19:16 "od" completion won't complete file names Bart Schaefer

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