delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/31/21:50:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 31 Mar 2005 21:49:56 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Luke Kendall <luke DOT kendall AT cisra DOT canon DOT com DOT au>
cc: cygwin AT cygwin DOT com
Subject: Re: Path confusion
In-Reply-To: <20050401000923.A56E285080@pessard.research.canon.com.au>
Message-ID: <Pine.GSO.4.61.0503312149250.15835@slinky.cs.nyu.edu>
References: <20050401000923 DOT A56E285080 AT pessard DOT research DOT canon DOT com DOT au>
MIME-Version: 1.0

On Fri, 1 Apr 2005, Luke Kendall wrote:

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

FWIW, this still won't allow you to access /home via c:/cygwin/home...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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