This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.5.25-15: Bash: Changing directory very slow (hang) without leading path
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, swellnuts at gmail dot com
- Date: Mon, 08 Dec 2008 20:40:31 -0700
- Subject: Re: 1.5.25-15: Bash: Changing directory very slow (hang) without leading path
- References: <d0198ef80812081916h3b238b39v9f79993259d4217c@mail.gmail.com> <d0198ef80812081929ja79a328mc038ec9af70ec7df@mail.gmail.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@byu.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/