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
Message-ID: <42426D9F.FC6B98A3@dessent.net>
Date: Wed, 23 Mar 2005 23:34:55 -0800
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Path confusion
References: <20050324071719.DAFA8834E0@pessard.research.canon.com.au>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

Luke Kendall wrote:

> Here's something that stunned me: I see different contents of a
> directory I want to be "empty-ish" (c:/cygwin/home), depending on how I
> refer to it.  I think it's because sometimes, "c:/cygwin" == "/".
> 
> $ cygpath -m /
> C:/cygwin
> 
> $ ls c:/cygwin/home
> 00-THIS-DIRECTORY-SHOULD-BE-EMPTY.txt
> 
> $ cd c:/cygwin/home

I think it's because when you 'cd' the path is normalized.  After "cd
c:/cygwin/home" the current working directory is now /home.  If you do
"ls /home" you should see the contents of the mount, if you do "ls
c:/cygwin/home" you'll see the contents of that directory itself.  In
other words mounting something on "/home" only affects paths that start
with "/home".  If you want "c:/cygwin/home" to actually be "d:/home"
then make it a symlink.

Brian

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

