Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compinit problems with Cygwin and Win2000
- X-seq: zsh-users 5072
- From: "Vagn Johansen" <v@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: compinit problems with Cygwin and Win2000
- Date: Fri, 21 Jun 2002 13:37:26 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020617160353.EKQO27002.fepD.post.tele.dk@xxxxxxxxxxxxxxxx> <1020618085113.17690@xxxxxxxxxxxxxxxxx>
Well, my original reply did not get through. But after
spending a little more time on the problem I found the
cause.
It was caused by the comparison in:
_d_als=($(whence -wm '_*' | sort |
while read -rA _d_line; do
[[ ${_d_line[2]} = function ]] && print -r - ${_d_line[1]%:}
done))
${_d_line[2]} contains "function^M" and not "function"
as expected.
The use of the .zcompdump cache file works properly
when I change the comparison to
[[ ${_d_line[2]} = function? ]] && print -r - ${_d_line[1]%:}
I will probably run into this line ending problem again.
Note: the problem does not occur on win98.
Vagn J
v@xxxxxxxxxxxxxxxx wrote:
> >Try changing that to
> >
> > fpath=(~/.zfunc $fpath)
> >
> >and then see what happens.
> >
>
> That does not change anything. But is more correct than what
> I
> had, so I will be using that line in the future.
>
> From what I understand from looking at the compdump code,
> the
> second to last "autoload" in .zcompdump should autoload all
> the underscore
> functions in $fpath[2]. Correct?
>
> Also completions don't work (cd <TAB>, ls <TAB> etc.) when
> statring a shell when the .zcomdump exists. If I delete
> .zcomdump
> and start a shell, then the completions work (print -<TAB>
> is cool!).
>
> By the way: i don't have this problem on my win98 machine at
> home.
>
> --
> Vagn Johansen
> (Replying to my own mail because Barts mail is on my PC at
> home)
--
Vagn Johansen
Messages sorted by:
Reverse Date,
Date,
Thread,
Author