Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Fri, 26 Aug 2005 11:14:20 -0700 (PDT)
From: "Peter A. Castro" <doctor@fruitbat.org>
To: cygwin@cygwin.com
Subject: Re: zsh: command not found => hangs
In-Reply-To: <20050826005349.GA4087@trixie.casa.cgf.cx>
Message-ID: <Pine.LNX.4.60.0508261033310.19032@gremlin.fruitbat.org>
References: <20050823205318.GF6716@bouh.ens-lyon.fr>  <Pine.LNX.4.60.0508241620460.19032@gremlin.fruitbat.org>  <20050825001137.GI7338@bouh.ens-lyon.fr> <Pine.LNX.4.60.0508251406580.19032@gremlin.fruitbat.org>  <20050825220454.GR7662@bouh.ens-lyon.fr> <Pine.LNX.4.60.0508251537490.19032@gremlin.fruitbat.org>  <20050826005349.GA4087@trixie.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-IsSubscribed: yes

On Thu, 25 Aug 2005, Christopher Faylor wrote:

> On Thu, Aug 25, 2005 at 04:57:46PM -0700, Peter A. Castro wrote:
>> On Fri, 26 Aug 2005, Samuel Thibault wrote:
>>> Peter A. Castro, le Thu 25 Aug 2005 14:18:53 -0700, a ?crit :
>>>> On Thu, 25 Aug 2005, Samuel Thibault wrote:
>>>>> Note that I replaced cygwin1.dll by the latest snapshot (2005/08/24).
>>>>> The current release version (2005/07/03) does work fine. I tried with
>>>>> previous snapshots, even 2005/07/05 fails...
>>>>
>>>> Wait, so the released version works, but the snapshot doesn't?
>>>
>>> Precisely.
>>
>> Hmm... Okaaaaay (I wonder what cgf has done to the code *this* time :)
>
> And, I wonder why you aren't testing snapshots...

Actually, since Samuel mentioned snapshots, I have been testing the
latest ones (currently 20050825), and something strange *is* happening...
but no hangs like he reported, and I can't seem to narrow the strangeness
down yet.  Has something change in how mount points are resolved?

For instance, I have the following mounts
  C:\users -> /home
  C:\ -> /c

When I try to cd to /home it says there's no /c/home path
An strace shows the following:

9807 8921240 [main] zsh 3436 mount_info::conv_to_posix_path: conv_to_posix_path (/home, keep-rel, no-add-slash)
1401 8922641 [main] zsh 3436 normalize_win32_path: C:\home = normalize_win32_path (/home)
1381 8924022 [main] zsh 3436 mount_info::conv_to_posix_path: /c/home = conv_to_posix_path (/home)

Note that there is no /c/home or even c:\home dir.

Where as, with 1.5.13 (sorry, it's an older version, but it works): I see:

9670 7488797 [main] zsh 3536 mount_info::conv_to_posix_path: conv_to_posix_path (/home, keep-rel, no-add-slash)
1275 7490072 [main] zsh 3536 normalize_win32_path: \home = normalize_win32_path (/home)
1804 7491876 [main] zsh 3536 mount_info::conv_to_posix_path: /home = conv_to_posix_path (/home)

It appears that the normalize_win32_path has changed it semantics.
Thoughts?

> cgf

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

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

