delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/02/23:19:39

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: Tue, 2 Oct 2001 23:19:43 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bash 2.04 can't complete ~/name if $HOME set to c:/users/foo?
Message-ID: <20011002231943.C10206@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20011002155310 DOT A2088 AT redhat DOT com> <15290 DOT 28742 DOT 250000 DOT 496166 AT antarres DOT muniversal DOT com>
Mime-Version: 1.0
In-Reply-To: <15290.28742.250000.496166@antarres.muniversal.com>
User-Agent: Mutt/1.3.21i

On Tue, Oct 02, 2001 at 09:56:22PM -0400, Jeff Mincy wrote:
>   From: Christopher Faylor <cgf AT redhat DOT com>
>   Date: Tue, 2 Oct 2001 15:53:11 -0400
>   
>   Lets try again.  Cygwin has several environment variables that it
>   translates back and forth between MS-DOS and UNIX format.  Two obvious
>   ones are PATH and HOME.
>   
>   When a cygwin process is first started, it translates these variables from
>   MS-DOS format to UNIX format for its internal use.  In most cases, when cygwin
>   execs a new process it converts these environment variables back into MS-DOS
>   format so that the new process can see native MS-DOS paths.
>
>I was wondering where those backslashes were coming from.
>My xemacs is being started up with HOME=c:\home\jmincy - and I had to
>put in an explicit cd in my .emacs to fix the path.
>
>My autoexec.bat has the following two lines.
>
>set HOME=c:/home/jmincy
>set PATH=c:\Cygwin\bin;c:\Cygwin\usr\bin;c:\Cygwin\usr\local\bin;C:\PROGRA~1\MSOFFICE\OFFICE;%PATH%;C:\PROGRA~1\Tcl\bin;
>
>Maybe a slightly tweaked improvement would be to do the dos/unix path
>conversion only for environment variables that start off in DOS
>format.

c:/home/jmincy is still MS-DOS format.  The Windows API allows you to
use '\' and '/' interchangeably.  We still want to translate that into
/cygdrive/c/home/mincy for Cygwin's purposes so not converting it is
not the right solution.

In any event, I don't have any plans on changing the current method.
The HOME conversion has been around for probably four years or so.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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