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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=fI//sVYObY2INRaMv7zoNyx9B8hC3voRWepsLTnOJ/2xXeluFYCmA LceIiO2SOpgJlSx63PY4TD+WItlEJ3hh42NBLznlxG6CE7/V1I25aQ7dtXXGBm5g zCbO9aCYL6jPXB0is5yZf+zJ/9z6nLUaK6eprk56VprEYUyUgtJ7DA= 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=LPE8DfjaI6e/GSyKMnVnMIfo+T8=; b=lNrJmoKfYMxvBqqr0t6vKOncYoAf YXUfqOpdhqkKalfTMowKoHoHlKAGSfU4TotnW8Lp9hNyheMzG++oWe2rzqGCfuR4 QHYxQ0CkrctyGNO5hIPxAAnkPdT2UKVP6PNMM3bikONz6rwaC+QWx9H0JFNPb8m2 UsQpLIM+Q355QV0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=no!, Hx-languages-length:1567, UD:ca, handed X-HELO: drew.franken.de Date: Thu, 8 Sep 2016 14:07:18 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: CYGWIN_NOWINPATH (was Re: /etc/profile: avoid multiple /usr/bin in PATH) Message-ID: <20160908120718.GE3860@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.0 (2016-08-17) --9zSXsLTf0vkW971A Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sep 5 10:36, Doug Henderson wrote: > 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=3DCYGWIN_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=3Dnodosfilewarning > > CYGWIN_NOWINPATH=3D1 > > > > 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 >=20 > I set CYGWIN_NOWINPATH=3D1 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. Ouch, no! Environment variables are handed down from parent to child process. On all systems, be it Windows, Cygwin, Linux or whatever. There's *no* other magic involved. It's just a bunch of strings inherited from the parent process. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --9zSXsLTf0vkW971A Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX0VR2AAoJEPU2Bp2uRE+gjoYP+gOGIzEXoy/SuPIaBFku/LOu 5fMlBOYVb2BTqloghV1Es7jIDIthipucNe7HVbbG4rHWn9KTrtUaLddxYg15PhwS GfW4VleFspi07kCg5yk0XSPg/ltMRsq28nIR+VjvyTGY+GVZ5AreLVMYGSRgi4DQ Wpm3rJ0DWyYS627MZyKHCfPsHhNufem/DNB19RK7MNES1zQqq7Fnpw3UFESsmeNl xI4Kew/ooLM+pL6ILby/FaGDlY36a6o0rOiWMLIh2YuigXrYyEgBgeAgslwYsPUy 3KEHuWdMplO/3vtQEmn4yF1hrxrr1Q2vO5va2tQwHN4+kh/xy+CYJgVgqxtDTOWg Ol8czZuQHQ8Z0wFJ1uoJbWABrebbfHr+7M+5eUgV9s4IK91lFWcXkVq1XSXsIhtg 4WRDbdv3li/o4lwRKsZWIpABNqBd3PNMEZsAs/Y29khn0z/dDugvW68Mf4faY1HL Qr/NRgRSdXoln4tps6ZY9jGEj1SQEi7UU54YhOEnQyuuYQiPcCQbA0Dq4NHq9rpb voTRezNhDRBVmIBFqsO3zx3WTo0Y4ZgpRhalhFT6+suh5npWqI8ibh2UGZeGCsZ2 TnAyR4LWnTcUB5BbbkEsogTQTzfDR8ruAi4T39D1Yh66IMbUdxubHtvDqKKaUyN5 Lx85lK836RLg7eWk5xvI =xYdh -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--