public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Koehmstedt <bpk@hungry.com>
To: cygwin@cygwin.com
Subject: win32 dia and HOME=/usr/bin/%USERPROFILE% fix
Date: Mon, 16 Jun 2003 21:56:00 -0000	[thread overview]
Message-ID: <20030616125948.A19258@hungry.com> (raw)


I had the problem of bash starting up with the home directory being
/usr/bin/%USERPROFILE%.

I searched the mailing list and came up with a January thread on the issue,
which informed me that the problem was due to the win32 dia installer
creating a Windows environment HOME variable that superceded bash's normal
HOME.

(the start of the Jan thread is at
http://sources.redhat.com/ml/cygwin/2003-01/msg01503.html)

In that thread I saw some suggestions on editing /etc/profile to fix it, but
I found this to be an easier all-around solution:

Edit the cygwin.bat file and put "set HOME=" somewhere in it.  This unsets
the Windows HOME environment variable and Cygwin/bash starts up with the
correct HOME environment variable.

I use startxwin.sh to start up X, but if you use startxwin.bat then you
probably have to edit that file too since it's another Windows batch file
that starts up bash shells.

-- 
Brian Koehmstedt
bpk@hungry.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

             reply	other threads:[~2003-06-16 19:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-16 21:56 Brian Koehmstedt [this message]
2003-06-23  8:49 ` Soren A.
2003-06-23  9:35   ` John Morrison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030616125948.A19258@hungry.com \
    --to=bpk@hungry.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).