Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_path_files returning an error
- X-seq: zsh-users 12529
- From: William Scott <wgscott@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: _path_files returning an error
- Date: Fri, 8 Feb 2008 15:09:13 -0800
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: wgscott@xxxxxxxxxxxxxxxxxx
Hi folks:
The _open completion function distributed with zsh for Darwin (mac os
x) uses _path_files:
i.e.,
_open_absolute_application_path() {
local expl curcontext
zstyle -T ":completion:${curcontext}:files" prefix-needed && \
[[ "$PREFIX" != [/~]* && compstate[nmatches] -ne 0 ]] && return 1
_wanted files expl 'application file' _path_files -P "$PREFIX[1]" -
W /
}
It returns this error, new to 4.3.5:
zsh-% open -a TextMate <tab>
_path_files:compfiles:357: too few arguments
It then offers to complete with directories but not file names.
Line 357 is this:
compfiles -p$cfopt tmp1 accex "$skipped" "$_matcher $matcher[2]"
'' fake "$pats[@]"
Bill
Messages sorted by:
Reverse Date,
Date,
Thread,
Author