delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/08/22:41:29

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <493DE8AF.6040704@byu.net>
Date: Mon, 08 Dec 2008 20:40:31 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, swellnuts AT gmail DOT com
Subject: Re: 1.5.25-15: Bash: Changing directory very slow (hang) without leading path
References: <d0198ef80812081916h3b238b39v9f79993259d4217c AT mail DOT gmail DOT com> <d0198ef80812081929ja79a328mc038ec9af70ec7df AT mail DOT gmail DOT com>
In-Reply-To: <d0198ef80812081929ja79a328mc038ec9af70ec7df@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jake Hawkes on 12/8/2008 8:29 PM:
> In bash, when changing to any directory (except parent via ..) it
> takes a very long time, or hangs.

Without looking, I'm guessing that you have CDPATH set, and that it
includes a network path.

> 
> If a prepend with a path, e.g. ./ or ../dir1/dir2 it works immediately.

Prepending . or .. disables CDPATH searching.

> I've included my cygcheck output.
...
> CDPATH = 'D:\'
...
> d:  cd             N/A    N/A

I almost had it.  bash is checking your cdrom drive for a possible match
on every unanchored cd call.  Also, I have never tested CDPATH with a
DOS-style path, but it certainly doesn't help matters.  If you still want
to use CDPATH in bash, at least convert it to a cygwin-style /cygdrive/d,
not d:\.  But most likely, since CD paths tend to be transient, you are
better off unsetting it altogether.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk96K8ACgkQ84KuGfSFAYA+QwCeNlwwAlhkP/DbywsrjaxJ7NKI
CVcAoIRjd5mXgt7CSgwDIZMgbTCNGhk2
=UJ5X
-----END PGP SIGNATURE-----

--
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