delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/16/07:11:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 16 Mar 2001 13:06:48 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: bash: difference between //c/ and c:/
Message-ID: <20010316130648.A20588@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <71171405 AT toto DOT iv> <15024 DOT 62910 DOT 662998 DOT 88543 AT jupiter DOT akutech-local DOT de> <20010315191709 DOT A15434 AT cygbert DOT vinschen DOT de> <3AB11798 DOT 499C5E6F AT yahoo DOT com> <15024 DOT 55376 DOT 204661 DOT 901949 AT jupiter DOT akutech-local DOT de> <15025 DOT 64606 DOT 615559 DOT 320208 AT jupiter DOT akutech-local DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <15025.64606.615559.320208@jupiter.akutech-local.de>; from ralf@akutech.de on Fri, Mar 16, 2001 at 12:43:26PM +0100

On Fri, Mar 16, 2001 at 12:43:26PM +0100, Ralf Fassel wrote:
> * Corinna Vinschen
> | So it has to be:
> | 
> |    mount -s -b --change-cygdrive-prefix /
> 
> I'll have to try this, too.
> 
> In the meantime I could solve my Openssh login problems by using
> `mount' and recreating /etc/passwd to have /home/user as HOME.
> 
> a) mount -s -b c:\\home /home
>    This resolves the login-via-ssh-problem (bash not working as
>    login-shell at all)
> 
> b) mount -s -b c:\\ /c
>    this solves the `ls: .: no such file or directory' when I cd to
>    c:/temp in a remote-login bash/sh and then invoke `ls'.

Actually you can use forward slashes when giving the DOS path:

	mount -s -f -b C:/ /c

and when mounting the root dir of a drive you can omit the
slash completely:

	mount -s -f -b C: /c

> Step `b' should be obsoleted by --change-cygdrive, I have to test
> that.

No. In fact it recreates the ability to use //c again but
this time without the need of a special path handling in
Cygwin to deal with //<drive-letter>. So we can drop that
in Cygwin, finally.

> So the keypoint seems to me to `mount' all related pathes:
>   - the home directories if they are to be `outside' of /
>     (/ is c:/cygwin, /home should be c:/home)
>   - the drives, either via explicit mounts, or via --change-cygdrive

That's always better, IMO. You should never give up control
of your paths. Personally I don't use paths in Cygwin which
I didn't create a mount point for. Uhm, except when I'm
just looking for something in X:/Program Files/Micro...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019