delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/26/13:20:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 26 Mar 2004 13:18:52 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: zsh-4.2.0-1
In-Reply-To: <1g9q3fy7t59hu.dlg@thorstenkampe.de>
Message-ID: <Pine.GSO.4.56.0403261311520.26970@slinky.cs.nyu.edu>
References: <20040326150928 DOT 0CD6C400140 AT redhat DOT com> <1n3metpwldoby$.dlg AT thorstenkampe DOT de> <Pine DOT LNX DOT 4 DOT 53 DOT 0403260908090 DOT 5939 AT gremlin DOT fruitbat DOT org> <1g9q3fy7t59hu DOT dlg AT thorstenkampe DOT de>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 26 Mar 2004, Thorsten Kampe wrote:

> * Peter A. Castro (2004-03-26 18:10 +0100)
> > BTW, I've tried many, many ways to reproduce your original hang
> > problem but am still unable to do so.
>
> One last try: I have recently set option "autocd"[1]. Now when I type
> something like "adksfaj" the delay (~ 10 seconds) is the same like
> with the correction mechanism ("/skjhf/aksjfdh"). It is noticeable
> that unlike normal completions I cannot stop the "hanging" search (or
> whatever it is) by [Ctrl]-[C].
>
> In /this case/ I have found the "culprit": I have "/" in my CDPATH[2].
> When I remove "/" it "works" normally by instantly saying "command not
> found". Of course this "doesn't make sense" as there are only nine
> directories in "/" and of course having "/" in cdpath is okay on my
> Linux box.

FWIW, I know nothing about zsh; I don't use it; but your statement above
triggered an association, so here's a WAG.  Many applications assume that
having multiple trailing slashes is equivalent to having one slash (and it
is in Linux).  I have seen applications blindly appending a "/" to a path,
just to make sure it ends in a / (don't know if zsh does it).  This, of
course, doesn't work in Cygwin when the path is just a "/", because a "//"
prefix is special.  I'd look through the path composition pieces of the
zsh code to see if "/" is ever appended -- I think that might be your
culprit.  The fix would be to check whether a path ends in "/" before
appending one.  HTH,
	Igor

> Maybe this "bug" (or whatever) is just "behaving" the same way like
> the "correction bug" but my hope is that it may "ring some bell" on
> your side (or any zsh user's)...
>
> > It is my hope that 1.5.10 will resolve this for you.  But, if not,
> > some serious debugging will need to be done on your machine.  Have
> > you tried the latest snapshot?
>
> I will try it when it's bash-unbroken ;-)
>
> Thorsten
>
> [1] "If a command is issued that can't be executed as a normal
> command, and the command is the name of a directory, perform the cd
> command to that directory"
>
> [2] cdpath=(.. ~ / /cygdrive/h /cygdrive/g /cygdrive/c)

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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