delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/26/07:33:46

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=c6WK14q+weiv9hYI
v03PNRTlli9bAzyzG9TsDQHQnxiEBzpqygqFQNG01zVDVQeFXoT3CWMVylNonRy4
lp036D/F4kRSO/dgoLTjlSxMZubh8SevxkIZ5Rq+IbVUm/hwo3zFvYAeZpqVy44I
oO1uWzK/YN/ZpwEPFOj4D+fqFhY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=KRkpRxGYo+tMwCeCgluExd
JH3Jk=; b=mwncO3E43yTK7btlRZv3LcWYBkrLhhTvEmZ1lIwms90PzelaP6QJ+e
+8T7dy8MIYyWtG/00t1XGCu341mi6ug2sFD6egC0r4Z2ewubMbyke/nFnHFlLP7r
iKk8OuIXW4PXNognUHpC78DynNl+sMv7xb42LQZrp6IgwX2b3hdHU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: HOME when using both cygwin and cygwin64
References: <56CFD202 DOT 9040009 AT cs DOT umass DOT edu> <56D00B19 DOT 209 AT gmail DOT com>
To: cygwin AT cygwin DOT com
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <56D0460A.2040303@cs.umass.edu>
Date: Fri, 26 Feb 2016 07:33:14 -0500
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>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019