This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Path confusion
- From: Luke Kendall <luke dot kendall at cisra dot canon dot com dot au>
- To: cygwin at cygwin dot com
- Date: Fri, 1 Apr 2005 10:09:23 +1000 (EST)
- Subject: Re: Path confusion
On 23 Mar, Brian Dessent wrote:
> 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
The problem is then that there are two /home directories: the real
/home that's mounted on, say d:/home, and the fake /home, formed by
re-writing "c:/cygwin" as "/", and tacking on the home subdirectory.
I think the solution is that I simply have to remove or rename
c:/cygwin/home.
luke
--
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/