X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0	tests=BAYES_05,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <alpine.LNX.2.00.1104032133370.3497@gremlin.fruitbat.org>
References: <AANLkTimvuT=oHRV0+wCjudgV6zoHr-OoHLUR1n9=MN9t@mail.gmail.com>	<alpine.LNX.2.00.1103241753160.3447@gremlin.fruitbat.org>	<AANLkTi=xxj7m78uwDGEFCVQqrs-_VHvrb8bJb0K1Cw66@mail.gmail.com>	<AANLkTinp3tu+tZWxiLM651sihdjxdnx_pCX-a52imWQ1@mail.gmail.com>	<alpine.LNX.2.00.1104032133370.3497@gremlin.fruitbat.org>
Date: Sun, 3 Apr 2011 23:03:08 -0700
Message-ID: <BANLkTi=0sRQJLxTTgQpNKE3V8uG=HjM_9g@mail.gmail.com>
Subject: Re: Zsh completion problem
From: Vikas Mishra <vikasm@vikasmishra.org>
To: "Peter A. Castro" <doctor@fruitbat.org>
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Replying again (with Cygwin ML in copy)

Hello Peter.

On Sun, Apr 3, 2011 at 9:40 PM, Peter A. Castro <doctor@fruitbat.org> wrote:
>
> I think you're going to have to give me some examples of what completion
> you are attempting. =A0I still can't make this fail no matter what I try.
> Your .zcompdump looks fine to me and if I strip my config to be just
> your example (uncommented, of course) I can't make it fail.

Thanks for asking me this question. In order to answer you, I tried
some experiments and they revealed something I wouldn't have
guessed. I wanted to attach a screenshot indicating that even cd
completion was becoming a problem but when I tried it, it worked. So I
did some more experiments and found the following.

a. If I try to do completion within the cygwin installation, that
works fine. So for example, I can do cd /usr/bin/ or cd ~/path and
this works fine.

b. If I try to do this outside the cygwin, for example I try to do cd
/c/Users/vimishra/, it won't work. I have remapped cygdrive to /. It
won't even complete /c/Users/.

c. If I comment the cygdrive remapping in /etc/fstab, so that the
cygdrive prefix becomes /cygdrive again, I _dont'_ get the
problem. The completion works everywhere. I had never thought that
this could have affected completion - but obviously it does.

d. If I change the cygdrive to something else, like /drive - the
completion is still working.

So I guess the problem statement changes from - completion not working
to completion not working when remapping cygdrive to /. It works in
the other cases. I can live with this if I have to, but would be
interesting to find out what could be going wrong in this case.

Let me know in case there are other experiments, I can try.

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

