Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"od" completion won't complete file names
- X-seq: zsh-workers 33912
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: "od" completion won't complete file names
- Date: Sun, 07 Dec 2014 11:16:40 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author