From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61928 invoked by alias); 26 Feb 2016 12:33:26 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 61918 invoked by uid 89); 26 Feb 2016 12:33:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*MI:sk:56D00B1, H*i:sk:56D00B1, H*f:sk:56D00B1, Hx-languages-length:1418 X-HELO: csmail.cs.umass.edu Received: from mdc1.cs.umass.edu (HELO csmail.cs.umass.edu) (128.119.240.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 26 Feb 2016 12:33:22 +0000 Received: from [192.168.0.19] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by csmail.cs.umass.edu (Postfix) with ESMTPSA id CB3B7980002365F6AB; Fri, 26 Feb 2016 07:33:20 -0500 (EST) Reply-To: moss@cs.umass.edu Subject: Re: HOME when using both cygwin and cygwin64 References: <56CFD202.9040009@cs.umass.edu> <56D00B19.209@gmail.com> To: cygwin@cygwin.com From: Eliot Moss Message-ID: <56D0460A.2040303@cs.umass.edu> Date: Fri, 26 Feb 2016 12:33:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56D00B19.209@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00400.txt.bz2 On 2/26/2016 3:21 AM, Marco Atzeri wrote: > On 26/02/2016 05:18, Eliot Moss wrote: >> Dear Cygwin-ers -- I solicit suggestions around the following. >> For a long time I have used cygwin (32 bit) almost exclusively, >> and in that universe my home directory is /home/moss, which in >> Windows land is C:\cygwin\home\moss. Now I also have cygwin64 >> installed under C:\cygwin64, with another home directory there, >> C:\cygwin64\home\moss. When I start a 64-bit bash in a 64-bit >> xterm, HOME gets set to /cygdrive/c/cygwin/home/moss. Does >> this seem right? It seems counter-intuitive to me -- should >> it not be /home/moss, namely C:\cygwin64\home\moss? If that >> would be better (I think so), how can I best achieve it? >> >> Regards -- Eliot Moss >> > > The default is /home/$USERNAME > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-passwdinfo > > If it is different you modified it in some way Indeed, you are right. If I start cygwin64 from its installed .bat file, I get a Cygwin terminal with HOME as /home/moss, under the C:\cygwin64 Cygwin root. So it is something about starting using my (32 bit) .XWinrc. Presumably the 32-bit HOME is being passed as an environment variable. The trick will be to get it unset so that the 64-bit bash uses its own /home/moss. I think I'll have to play with the .XWinrc more to figure that out. Regards -- EM -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple