delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/04/02:46:46

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,TVD_RCVD_IP
X-Spam-Check-By: sourceware.org
Date: Sun, 3 Apr 2011 23:44:03 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: Vikas Mishra <vikasm AT vikasmishra DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: Zsh completion problem
In-Reply-To: <BANLkTi=0sRQJLxTTgQpNKE3V8uG=HjM_9g@mail.gmail.com>
Message-ID: <alpine.LNX.2.00.1104032316020.3497@gremlin.fruitbat.org>
References: <AANLkTimvuT=oHRV0+wCjudgV6zoHr-OoHLUR1n9=MN9t AT mail DOT gmail DOT com> <alpine DOT LNX DOT 2 DOT 00 DOT 1103241753160 DOT 3447 AT gremlin DOT fruitbat DOT org> <AANLkTi=xxj7m78uwDGEFCVQqrs-_VHvrb8bJb0K1Cw66 AT mail DOT gmail DOT com> <AANLkTinp3tu+tZWxiLM651sihdjxdnx_pCX-a52imWQ1 AT mail DOT gmail DOT com> <alpine DOT LNX DOT 2 DOT 00 DOT 1104032133370 DOT 3497 AT gremlin DOT fruitbat DOT org> <BANLkTi=0sRQJLxTTgQpNKE3V8uG=HjM_9g AT mail DOT gmail DOT com>
User-Agent: Alpine 2.00 (LNX 1167 2008-08-23)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

---1463811017-981834178-1301899444=:3497
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Sun, 3 Apr 2011, Vikas Mishra wrote:

> Replying again (with Cygwin ML in copy)
>
> Hello Peter.

Greetings, Vikas,

> On Sun, Apr 3, 2011 at 9:40 PM, Peter A. Castro <doctor AT fruitbat DOT org> wrote:
>>
>> I think you're going to have to give me some examples of what completion
>> you are attempting.  I 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.

Could you provide your /etc/fstab so we can see what you are doing (for
the failing case)?  I'd like to try testing exactly your config.

Also, could you run "cygcheck" as per:
   http://cygwin.com/problems.html

This sounds like it might be a mount issue for cygdrive, but that's just
a guess.  The completion failure for #b would appear to indicate that zsh
was unable to find a directory entry for some part of the path.  If
there's something funny about how cygdrive is mounted over root, that
might account for the completion failure.  Again, sheer speculation at
this point.

> 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

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood

---1463811017-981834178-1301899444=:3497
Content-Type: text/plain; charset=us-ascii

--
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
---1463811017-981834178-1301899444=:3497--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019