This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bash and ~



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@mae.cornell.edu
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]