From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15322 invoked by alias); 16 Jun 2003 19:59:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15249 invoked from network); 16 Jun 2003 19:59:49 -0000 Received: from unknown (HELO terror.hungry.com) (199.181.107.40) by sources.redhat.com with SMTP; 16 Jun 2003 19:59:49 -0000 Received: from localhost (localhost [127.0.0.1]) (uid 554) by terror.hungry.com with local; Mon, 16 Jun 2003 12:59:48 -0700 Date: Mon, 16 Jun 2003 21:56:00 -0000 From: Brian Koehmstedt To: cygwin@cygwin.com Subject: win32 dia and HOME=/usr/bin/%USERPROFILE% fix Message-ID: <20030616125948.A19258@hungry.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline User-Agent: Mutt/1.3.23i X-SW-Source: 2003-06/txt/msg00817.txt.bz2 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/