From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108916 invoked by alias); 8 Sep 2016 12:07:37 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 108901 invoked by uid 89); 8 Sep 2016 12:07:36 -0000 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 Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Sep 2016 12:07:26 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 94AF7721E281A for ; Thu, 8 Sep 2016 14:07:19 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id EDB445E00A2 for ; Thu, 8 Sep 2016 14:07:18 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id DC44BA8037C; Thu, 8 Sep 2016 14:07:18 +0200 (CEST) Date: Thu, 08 Sep 2016 12:07:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.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@cygwin.com Mail-Followup-To: cygwin@cygwin.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) X-SW-Source: 2016-09/txt/msg00130.txt.bz2 --9zSXsLTf0vkW971A Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1547 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" Content-length: 819 -----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--