delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/24/21:16:09

From: lhall AT rfk DOT com (Larry Hall)
Subject: Re: bash and ~
24 Feb 1998 21:16:09 -0800 :
Message-ID: <3.0.5.32.19980224103525.0097f7e0.cygnus.gnu-win32@pop.ma.ultranet.com>
References: <199802231546 DOT KAA20557 AT scotch DOT mae DOT cornell DOT edu>
Mime-Version: 1.0
To: karipid AT mae DOT cornell DOT edu (Daniel Karipides), gnu-win32 AT cygnus DOT com

At 10:46 AM 2/23/98 -0500, Daniel Karipides wrote:
>
>I tried to check the archives for this, but couldn't find any mention
>of the following problem.
>
>I have defined the enivornment variable $HOME to:
>
>D:\Users\smith
>
>I need it defined this way so that emacs (among other programs) works
>correctly when not started from bash.  However, in bash I noticed the
>following:
>
>bash$ echo $HOME
>D:\Users\smith        <--seems to work
>
>bash$ cd ~
>bash.exe: D:Userssmith: No such file or directory
>
>It seems that the \'s have been removed, which I guess makes sense
>under bash.  Changing HOME to D:\\Users\\smith works for ~, but
>unfortunately doesn't work for emacs outside of bash, etc...
>
>I apologize if this is a problem with a well known solution, but I
>couldn't find it mentioned on any of bash/cygwin set up web pages.
>
>Thanks in advance,
>
>-Dan Karipides
>-----
>karipid AT mae DOT cornell DOT edu

Hi Dan,

This is a known problem but not necessarily well known.  Also, I am unaware
of a solution that fixes your particular case.  I ran into this a long time
ago but "fixed" it for my purposes by defining HOME to /Users/smith, let's
say (assuming D: is mounted on /).  Your option of using the drive and 
backslashes also would work if you escape the backslashes.  However, if
this collides with what Emacs expects, you're in trouble (I don't use Emacs).
Perhaps using a cygwin32 compiled version of Emacs would get you some 
closure?


Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02181                    http://www.rfk.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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