Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _path_files returning an error
- X-seq: zsh-users 12530
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: _path_files returning an error
- Date: Sat, 9 Feb 2008 07:19:03 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=H5RrMDr19N63fmxSulSaRYr6RO3PeNNPlVVurAfrV5I=; b=sTeSmeqDI/JFdnaQmLBFVtpU/Fx4HYLHfJBAuhMXWpjT7Twmhgj0fmUHr+iXHPtEqgl/Z/dtKAYMCYYdlPbUu05w81dNMTqDMLK7DcAmHuOVWS0JF3XJohD6wtsVNMDvLCdE+Vif/JaLnf2HHNhjNvY0FPOyrjDufpWpJ+J5jsc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hdX6A8k8gewr9o7OXG1/6NCZT7EwUthXqg/WzUlG/vcXqY/P9kfTzeQ0sKCq2srT7bidH2yKblDGJP8n9RXnIXiT22/HNp+JZPp0cv2h44SPPdOM50sVhLFbh0wYNFfxr/oe8nki9YKd/f60E+AD7dQuHWBQaGXIVsVKZPIMC30=
- In-reply-to: <8A6A24D2-E920-432C-BB08-5076E8C8B375@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <8A6A24D2-E920-432C-BB08-5076E8C8B375@xxxxxxxxxxxxxxxxxx>
On 09/02/2008, William Scott <wgscott@xxxxxxxxxxxxxxxxxx> wrote:
> 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[@]"
I don't know how it happened or why, when I tried on linux it I got
% open -a error: "kern.argmax" is an unknown key
zargs: value for max-chars must be >= 1
but I can't reproduce it.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author