Mail Archives: cygwin/1997/01/27/16:05:01
On Fri, 24 Jan 1997 10:21:20 -0500, Long Doan <ld AT netrix DOT com> wrote:
>I have a setup similar to yours, so maybe this will help. I set the HOME
>variable via the control panel, like HOME=/home/ld, and in my emacs.bat
>(NTEmacs's startup file) I set HOME=%HOMEDRIVE%%HOMEPATH%, which is
>D:\home\ld. If you want to invoke NTEmacs via some icon, just tell that
>icon to invoke the .bat file.
>
>Ron Forrester wrote:
>> I don't (anymore) define HOME in my .bashrc. I have a bash.cmd which I
>> run to launch bash, which is:
>>
>> @echo off
>> set HOME=/usr/rjf
>> c:/usr/rjf/b17.1/h-i386-cygwin32/bin/bash.exe
>> exit
>>
>> this has fixed that problem.
The source of this problem appears to be that bash captures the value
of HOME when it starts -- before it executes .profile/.bashrc -- and
does not pay attention to later changes of the HOME variable (as far as
~ is concerned). Thus setting HOME in your .profile has no effect; ~ is
still the pre-bash value of HOME. (cd without any arguments works
correctly, using the current value of HOME.)
--
James Dumser 972-462-5335 dumser AT ti DOT com
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -