From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24906 invoked by alias); 29 Apr 2012 06:58:23 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17040 Received: (qmail 23300 invoked from network); 29 Apr 2012 06:58:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) 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== Date: Sun, 29 Apr 2012 02:57:56 -0400 From: TJ Luoma To: zsh-users@zsh.org Message-ID: <11E3E5A7F06F49C2B05AD5289019FC72@gmail.com> In-Reply-To: References: Subject: Re: compinit causes completion to fail? X-Mailer: sparrow 1.5 (build 1043) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline To answer my own question: I=46S=3D' ' is what was causing the problem. I'm now learning about using the f expansion flag instead of mucking with= I=46S for splitting arrays on newlines TjL =20 On Sunday, April 29, 2012 at 1:21 AM, TJ Luoma wrote: > =20 > I split my .zshenv and .zshrc into several smaller files which are sour= ced separately, and now I've broken completion :-/ > =20 > If I include these two lines in my zshenv file=5B1=5D: > =20 > autoload -U compinit > compinit > =20 > =20 > =20 > then completion fails with this message: > =20 > =5Fcomplete:117: command not found: =5Fnormal > =20 > and a =7E/.zcompdump file is created =5B2=5D > =20 > but if I comment out those two lines: > =20 > =23autoload -U compinit > =23compinit > =20 > =20 > =20 > then completion seems to work OK. > =20 > HOWEVER, if I remove my =7E/.zshenv and all related =7E/.z* files, and = then use 'autoload -U compinit' and 'compinit' then it works fine, and th= e 'zcompdump' file looks better =5B4=5D, which further solidifies my beli= ef that the problem here is something I've done in my .zshenv files=E2=80= =A6 but what=3F > =20 > =20 > Did I fail to load something before turning on compinit, or did I set s= omething too early=3F Bindkeys, perhaps=3F > =20 > =20 > If you look at the 'zcompdump' file =5B2=5D, specifically at line 117, = it says: > =20 > bindkey '=5E=5Bg=22 get-lin' =20 > =20 > that looks wrong to me. In fact, ALL of the bindkey lines look like the= y have lost the last character. > =20 > This started immediately after I split my =7E/.zshenv file into several= different files. You can see them all here =5B3=5D. This is using 4.3.11= on Mac OS X 10.7.3. =20 > =20 > I have no idea what I've done here, but I'd appreciate any help. > =20 > =20 > TjL > =20 > =20 > =5B1=5D =20 > https://www.dropbox.com/sh/7t1jagj5clkz0ci/=5Fnzmp1eO9b/interactive/com= pletion.sh > =20 > =20 > =20 > =20 > =20 > =5B2=5D > http://dl.dropbox.com/u/18414/tmp/zcompdump.txt > =20 > =5B3=5D > https://www.dropbox.com/sh/7t1jagj5clkz0ci/28xgQ85Mye > =20 > =5B4=5D > http://dl.dropbox.com/u/18414/tmp/zcompdump2.txt