delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/15/17:19:26

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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=veimBIM
VpH82up4MqajSBqBquS7iVvNR9s+bjUTLUNKByixP4fcnWQcGP9iOacfqdtSKcC9
CSnrsc02nIbU7MqThfWwaM/qAJ8e7nE1F/M6mVudCDG1lM2UvQCdW78cvrllHEFr
u8VKhmVjdx8KTeAh86z/iFlimnz9DHUSv/O0=
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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=L+JJDjqsuYZAi
VzPY3+MN/4GgwM=; b=yg+w8MxfstBFlAPnFjfWX8DSzBC2OPxxusnmfPBzu2jVe
LMf9hC5wLY83cLF5Nf7xKpECY8V2WXI8yH7r17p8Lp7kgpJWCEDEBABfLhqZ4N+i
CCyRCC+QL910lEsAFCOJoP9SbYPTfOYyiSC1HipboXksfIg9E2LuW2TAhx+n0o=
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-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=D*yandex.ru
X-HELO: mail-qk1-f171.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=y893sHuFEa7iPdwpun+X9aUk4uwJ3/5ojPLsY09D7S0=; b=dtKOc0CSBHXO07x118ts6MrhA4bSVOstOlGT5fI3V8IxOPSRhdR2AToOyd6RgLFb5G 6TxSPBylmEBdrT+XncZVFQmvAhJWLs5sHMIam+K2mj4ovCSqFuUk4NBJNnBm41MLykwD TsmGmqOeS1RdMVifL92+UOyn9UN7aOHkMwEsPT4GoOky67fQ/CdJNWdOhJ7FQwD/w4eI dHHpzLFBuJkONg19rpGOoggDP4CYsW2JpD6iXD3EBguwcWnGyKyTe0O3sWMoQPZfghoV LfR1XrfWRNM/j4AHiVZ08jB2jwlbiuxbf/enfAOZ2Vmng8/7sao/6LqwrERp0DGtKJbC aNvQ==
MIME-Version: 1.0
References: <CANV9t=R83dQddZOVWVUg55t7K=DUyE8BiQ10Pn1v4G+xcgPh3w AT mail DOT gmail DOT com> <9539a1e8-e893-3175-f96c-fb4ad172702c AT redhat DOT com> <CANV9t=R-1XE-cyKa5vtvtu_3dJiYoLRstBTN86JiQ2FS2T+Jyw AT mail DOT gmail DOT com> <2a87c6c0-6a0f-6994-3620-8b0b722d7d49 AT redhat DOT com> <CANV9t=QXVTGF0uS+vNCmkrxNOV7GVAsO_5hTS9hizX0tnW=-PA AT mail DOT gmail DOT com> <06CBB893-FD9F-460F-B00C-E22950036B5E AT solidrocksystems DOT com> <CANV9t=RML1q=ZAQOadvrsjmWn2391s6jr_t1MgbaJxO6DM2V5Q AT mail DOT gmail DOT com> <1861294227 DOT 20190215144010 AT yandex DOT ru> <CANV9t=RSq2yXDr28B7YN1cxoANV2N2fmP=9=WRRi-CWXzLmxRw AT mail DOT gmail DOT com> <1239658345 DOT 20190215233258 AT yandex DOT ru>
In-Reply-To: <1239658345.20190215233258@yandex.ru>
From: Doug Henderson <djndnbvg AT gmail DOT com>
Date: Fri, 15 Feb 2019 15:17:49 -0700
Message-ID: <CAJ1FpuMf_P8-7P_tqY5SVL+-etuA0VdKE85ZiHs3mWQ-HA9DxA@mail.gmail.com>
Subject: Re: Get Cygwin home directory path for current user
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On Fri, 15 Feb 2019 at 13:35, Andrey Repin <anrdaemon AT yandex DOT ru> wrote:
>
> Greetings, Bill Stewart!
>
> >> Setup your system to use %USERPROFILE% as $HOME and forget this problem
> >> altogether.
> >> For interoperability's sake! (q)
>
> > That won't work, because Cygwin $HOME can be different from the
> > USERPROFILE environment variable on Windows.
>
> Make. It. The. Same.
> Tell, don't ask.
>
NO NO NO.

I do not mix Windows and cygwin. I always use the CYGWIN_NOWINPATH=1
to isolate Windows from cygwin. I do not want to accidently run a
cygwin binary when I am using Windows, nor a Windows binary when using
cygwn.

For mixed operations, I use MINGW64. Look at what GitHub does with
their Github Desktop product. The MINGW64 package is included, and it
provides many of the same packages as cygwin, but they are build to
interoperate with the Windows environment, i.e. they recognize both
windows and unix format filenames, and transparently convert as
necessary.

When I need to use unix utilities from the windows environment, I
configure the MINGW64 binary paths at the start of the PATH variable.
It is just too much work to make cygwin binaries work in isolation.

In my option, the cygwin and Windows home directories should always be
different locations. However, the MINGW64 and the Windows directories
can be the same location.

Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

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