X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Date: Mon, 7 Feb 2011 23:58:42 +0100 From: David Sastre To: cygwin AT cygwin DOT com Subject: Re: Script to Auto CYGWIN -U all environment varialbes Message-ID: <20110207225842.GA16443@jethro.local.lan> References: <011c01cbc717$766ecfe0$634c6fa0$@com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <011c01cbc717$766ecfe0$634c6fa0$@com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 07, 2011 at 03:36:26PM -0700, Gary Furash wrote: > Has anyone written anything into their bash profile or whatever that goes > through each windows environment variable currently extant, and resets th= em > via CYGPATH >=20 > Before, @ start of .bashrc > ETC=3DC:\WINDOWS\ETC >=20 > After run of .bashrc > ETC=3D`$(cygpath -u '$ETC')`; EXPORT ETC (--> /cygpath/c/windows/etc) >=20 > Or something like that. So, by the time you hit your cygwin prompt all yo= ur > environment variables are already cleaned up. I have seen the need to take windows paths conversion into account only when dealing with Java apps from within cygwin: e.g. a tomcat appserver, where the catalina.sh converts cygwin paths into windows ones before sending them to the JVM, that doesn't understand them. Other than that, I fail to understand what is the use for this.=20 Could you please elaborate on a use case for such a configuration? Also note that, following your example, you can still reach /cygpath/c/windows/etc without converting anything. --=20 Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk1QeSIACgkQYX05bESLMet86wCgmh36gFCNaE86m95uCZEZL+HZ ou4An1ghPN3EHWRtmuEeJz1IZp8aVcOT =E3Lx -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--