delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/25/23:33:08

From: humblet AT eurecom DOT fr (Pierre A. Humblet)
Subject: Re: bash and ~
25 Feb 1998 23:33:08 -0800 :
Message-ID: <3.0.5.32.19980225000426.0081eb70.cygnus.gnu-win32@mail.gowebway.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)
Cc: gnu-win32 AT cygnus DOT com

Here is how I have solved it.

1) My window environment variable is c:\users\pierre
I can call emacs and bash from Windows, they find my HOME, no problem.

2) In .profile I change HOME to /users/pierre
Note that in B18 this does NOT change ~,
but the bug is fixed in coolview.

3) In my .profile I also define a function
function emacs () { HOME='c:\users\pierre' /bin/emacs $* ;}

With coolview that function can be exported automatically to the subshells.
With b.18 you have to redefine it in your .bashrc or whatever.

Any better idea? The real fix is to have emacs understand "/users/pierre"
Are they aware of the issue?

Pierre

At 10:46 AM 2/23/98 -0500, you 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
>-
>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".
>
-
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