Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compinit causes completion to fail?
- X-seq: zsh-users 17040
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: compinit causes completion to fail?
- Date: Sun, 29 Apr 2012 02:57:56 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=e/2BFG37i9NAUky2afRgFuwqYQNtLV245RQw33/g0Vw=; b=gq7fwrhD8b2p6zq8nXLRnS2EEA3eOzqCgfYvE9TRzvJzzborHa65nEVo0EG6R1vCkz DQvcyHJ/58NdWrPVwHGUOu4PGLkFa12XQ/UYfrdXo/3IxiUTbnF8+GZ4kzI1SpbM6bXE GUeY3b5vXyav5zIS77nSbxGCM7ZKJfgBAShQzHxWtC1h0B4DDJm57rbBwbszfsNw4C0y h9pkz3WPgF69QVoNA7F+EMscTwJO9QcgnyZcVBCiPow1vpeclrhVVgHd56/cb8T2Fq8s mXymHFPDlMH5/3MesagOUnL17ngjg3TapTB8/BTJ2TydXi+dSc0ChVnVO5ipGwaYUqu5 PuCA==
- In-reply-to: <E5557D87279D4F42B645D0604939B2C8@gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <E5557D87279D4F42B645D0604939B2C8@gmail.com>
To answer my own question:
IFS='
'
is what was causing the problem.
I'm now learning about using the f expansion flag instead of mucking with IFS for splitting arrays on newlines
TjL
On Sunday, April 29, 2012 at 1:21 AM, TJ Luoma wrote:
>
> I split my .zshenv and .zshrc into several smaller files which are sourced separately, and now I've broken completion :-/
>
> If I include these two lines in my zshenv file[1]:
>
> autoload -U compinit
> compinit
>
>
>
> then completion fails with this message:
>
> _complete:117: command not found: _normal
>
> and a ~/.zcompdump file is created [2]
>
> but if I comment out those two lines:
>
> #autoload -U compinit
> #compinit
>
>
>
> then completion seems to work OK.
>
> HOWEVER, if I remove my ~/.zshenv and all related ~/.z* files, and then use 'autoload -U compinit' and 'compinit' then it works fine, and the 'zcompdump' file looks better [4], which further solidifies my belief that the problem here is something I've done in my .zshenv files… but what?
>
>
> Did I fail to load something before turning on compinit, or did I set something too early? Bindkeys, perhaps?
>
>
> If you look at the 'zcompdump' file [2], specifically at line 117, it says:
>
> bindkey '^[g" get-lin'
>
> that looks wrong to me. In fact, ALL of the bindkey lines look like they have lost the last character.
>
> This started immediately after I split my ~/.zshenv file into several different files. You can see them all here [3]. This is using 4.3.11 on Mac OS X 10.7.3.
>
> I have no idea what I've done here, but I'd appreciate any help.
>
>
> TjL
>
>
> [1]
> https://www.dropbox.com/sh/7t1jagj5clkz0ci/_nzmp1eO9b/interactive/completion.sh
>
>
>
>
>
> [2]
> http://dl.dropbox.com/u/18414/tmp/zcompdump.txt
>
> [3]
> https://www.dropbox.com/sh/7t1jagj5clkz0ci/28xgQ85Mye
>
> [4]
> http://dl.dropbox.com/u/18414/tmp/zcompdump2.txt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author