X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_20,SPF_HELO_PASS,TVD_RCVD_IP,TW_HR,TW_YG,URIBL_RHS_DOB X-Spam-Check-By: sourceware.org Date: Thu, 24 Mar 2011 18:36:02 -0700 (PDT) From: "Peter A. Castro" To: Vikas Mishra cc: cygwin AT cygwin DOT com Subject: Re: Zsh completion problem In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Thu, 24 Mar 2011, Vikas Mishra wrote: > Hello, Greetings, Vikas, > I have been trying to use Zsh on cygwin. I am having some trouble with > completion. Basically if I load compinit, the tab completion doesn't > work at all. On commenting out the compinit loading/invokation from > the command line, it works correctly. This is a cygwin only problem, > the same zshrc file works without issues on Linux. > > I did a search of the mailing lists and it recommended Commenting the > compinit, deleting the .zcompdump file, Starting a new shell, running > compinit and then finally uncommenting it. That doesn't fix the > problem for me. I don't think I have a corrupted .zcompdump file (at > least it doesn't appear corrupted to my untrained eyes). The ultimate cause of this particular problem was permissions on the "functions" directories not being to zsh's liking (ie: having write permission for group or other). This was a build error on my part for 4.3.11-1, which was corrected in 4.3.11-2. (Make sure you have installed 4.3.11-2, btw :-) With the permissions wrong, compinit fails to load any of the completion functions and ends up creating a very, very abbreviated .zcompdump file (less than 1k in size, versus > 30k size). You can tell this by looking at the .zcompdump and if it things like _comps() are mostly empty, then you are hitting the problem. Verify that you .zcompdump has move that a few functions in it and verify the permissions on all directories under /usr/share/zsh/4.3.11 are 755 (rwxr-xr-x) and that all files under those directories are 644 (rw-r--r--). This is, of course, assuming that this is the problem you are experiencing, rather than some new, unidentified, problem :-) If you've checked the above, then the next thing is to send me your .zshrc (or at least those parts of if you feel exhibit the problem). > Cygwin version is 4.3.11. Any suggestions/hints? cygcheck doesn't > report anything obvious (It reports tetex-bin is incomplete, but I > don't think they are related). > > Regards, > Vikas > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Peter A. Castro or "Cats are just autistic Dogs" -- Dr. Tony Attwood -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple