delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/03/27/06:05:43

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=UlK1s+jSeAR9S0oB
XSUX8mjZiTesBQ4CYdloZlC6flQLsMPQ0M66gEp3JGLW2fqzPzuHJ+qmU/MNC+M3
qjI7r5kFWpKF9keRXVOSwXR6BTt9Ct5wXYTh8B7NDAkZM9CtfpoRL5uC2fgTgmTh
l/bAUBjZzPfPySQAvaHU/rr2oWQ=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=SBrhLYBWJciayzKI8pYqs1
0AZd0=; b=wf/EjhvkeW269TPNVK3K2Siql3uNONd9vnjPjD/MXMzALDaWwtYgpA
rqesA0oYZ2UvFFsYhXVYWzP0hAb6EzrT1TXPJqzknDEcz4ThDxLnJbnFp37GR2kK
NbDszH9ttqvGFjOC38fNIesQGgwRwn3rcJWYYk0I0X/UAz6sPJ6sc=
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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, H*RU:sk:forward, HX-HELO:sk:forward, Hx-spam-relays-external:sk:forward
X-HELO: forward103j.mail.yandex.net
Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Tue, 27 Mar 2018 12:59:44 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1121896961.20180327125944@yandex.ru>
To: David Karr <davidmichaelkarr AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Issues with setting or not setting HOME environment variable
In-Reply-To: <CAA5t8Vpxhn9Mf+ACxEJ57AdS4mk7J9gDWv21hOSOUxT7h-Yqxw@mail.gmail.com>
References: <CAA5t8Vpxhn9Mf+ACxEJ57AdS4mk7J9gDWv21hOSOUxT7h-Yqxw AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, David Karr!

> I currently do not set the HOME environment variable.  I get the
> impression you're not supposed to do that.  When I run a mintty shell,
> it correctly puts me in "/home/<myuid>", which is what I want.

> I'm running into a problem with Eclipse egit, as I think it's looking
> for the "HOME" environment variable to determine where the .gitconfig
> file is. If it doesn't find "HOME" set, I have a feeling it's looking
> for "HOMEDRIVE", which is set to something I can't easily control.

> Is there some way I can set "HOME" to my Windows home location, but
> still have Cygwin do the right thing and go to "/home/<myuid>"?

It's not Cygwin, it's bash setting HOME when run as login shell.
If you wish, you can force that setting in ~/.profile or otherwise manipulate
the environment prior to starting mintty.

I, for one, prefer my $HOME match my real profile home. Don't see the reason
to spread my stuff thin across the filesystem.


-- 
With best regards,
Andrey Repin
Tuesday, March 27, 2018 12:57:18

Sorry for my terrible english...


--
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