delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/09/05/12:36:55

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:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=PfghVI8
lDIZ3vpJ5s9tfpdQHzWrNV5jtOA1s0xPI00L47FFam3xS0jAjwVHrLBI306oKxK8
a0Hj9ekszs00Zl5qiomsW1ge1dxLBm7ogpPBjcmT9+bXysnXZOo/InDjzggFQM3T
iT7ebwlOTHzw8ketX1l1tbTjGI+5GwUzmWRc=
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:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=42Uo106Uly3id
abgD9f5k2S5gtM=; b=snZIdPubq7SHyVftEy1KE50W1n4wMtbpq07BtEgOVIHCC
N487SoHHmhP77Lc+O1JR8seqOi1ZBlNEsoYyZ4A/cIimCTwPsBO0cbatyYy5+ZPG
7rpaaCWJY34D80j/SblC5AxnDmNPZWNhPVC0vclubwtQGibspCiJ2hOaRw0yDQ=
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.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=calgary, Calgary, Premium, H*f:sk:CAK-n8j
X-HELO: mail-qt0-f177.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ppk5PaL7ov69Xzv5vouNLz6dVTGTF8FBqA1rFNPIxmU=; b=GCS7uj6/UNncrRu7e/dxwmZNGNQ/9vJxsGmRAGXd6v9euLD2YOBYywqdAVAGBJrFIA k8VsdkOhq0X6jp4ghDVodAdbQK9XSBLHdXuo+g3N2Sv8fKJmOxfvOw2nfdreASAFSW4y yb4e1W9Fq/i5I2REG0/ofwW19XVYnl3VlV3Y8m5YqySBxVK2jFdetHhq3lAsrvUoPg4f m/arfeFZtYsvdpIPb+xWWQSeEca6ixb1wFjzurZ1wBnXCR5Ji1iRv28wKeptsqR2PFYk nD7CPUbyVS8uA1JFqVasG1P9PULvuoYFrVhM78NrtMUCx9uSyZcgIbntSj/JBk4TvAmS rrMg==
X-Gm-Message-State: AE9vXwPxMoyIiNDDhM2usEc2N4ayYDeUnrE+yvqyZWsgimQzb6wsdaLP/oNmFuQ5KVf4egpVaPqfc7/rgerPLg==
X-Received: by 10.200.44.213 with SMTP id 21mr40220920qtx.91.1473093387935; Mon, 05 Sep 2016 09:36:27 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAK-n8j7X7XkqO8Ny=_1CRLX=9cLY4nx6Pau2Q5mSq8ODVjNMtQ@mail.gmail.com>
References: <CAK-n8j7X7XkqO8Ny=_1CRLX=9cLY4nx6Pau2Q5mSq8ODVjNMtQ AT mail DOT gmail DOT com>
From: Doug Henderson <djndnbvg AT gmail DOT com>
Date: Mon, 5 Sep 2016 10:36:07 -0600
Message-ID: <CAJ1FpuMm_agFZZGbW=nCHes4uuNL2FPJWdgYb=0uRMoXdWZrCw@mail.gmail.com>
Subject: Re: CYGWIN_NOWINPATH (was Re: /etc/profile: avoid multiple /usr/bin in PATH)
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On 5 September 2016 at 10:04, Jim Reisert AD1C  wrote:
> On Sun, Sep 4, 2016 at 10:07 PM, Doug Henderson wrote:
>
>> Note that CYGWIN_NOWINPATH is still undocumented, except in the email
>> archives. See, e.g.
>>
>>     https://www.google.ca/search?q=CYGWIN_NOWINPATH+site:cygwin.com
>>
>> CYGWIN_USEWINPATH is also undocumented, except in a non-cygwin.com
>> email archive.
>
> CYGWIN_NOWINPATH is not working for me.
>
> CYGWIN_NT-10.0-WOW AD1C 2.6.0(0.304/5/3) 2016-08-31 14:27 i686 Cygwin
>
> d:\>printenv | grep CYG
> CYGWIN=nodosfilewarning
> CYGWIN_NOWINPATH=1
>
> When I start bash, I still get my full Windows path as part of the
> bash path.  Am I missing something?
>
> I have neither a ~/.login or ~/.profile, only a ~/.bashrc

I set CYGWIN_NOWINPATH=1 in my user environment variables, i.e. in
registry, not in a cmd shell. I expect it needs to be seen when the
first cygwin1.dll instance starts, so you would need to stop all
cygwin processes and servers, just like you do when you run the cygwin
setup, for this to be effective.

It works for me in both my x86_64 and x86 cygwin installs. I start
bash from mintty using the desktop shortcut created by setup (or a
copy of it), I have CYGWIN=error_start=d:\cygwin64\bin\dumper.exe, I
know this is the wrong dumper for my 32bit install, but I do almost
all my work in the 64 bit install, that's not a big deal for me.

BTW: I think cygwin1.dll stores the original windows path in the
exported ORIGINAL_PATH variable. I am running Windows 7 Home Premium
on an laptop.

$ uname -a
CYGWIN_NT-6.1 Rover 2.6.0(0.304/5/3) 2016-08-31 14:32 x86_64 Cygwin


HTH
Doug



-- 
Doug Henderson, Calgary, Alberta, Canada

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