From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28240 invoked by alias); 7 Feb 2011 22:59:15 -0000 Received: (qmail 28232 invoked by uid 22791); 7 Feb 2011 22:59:15 -0000 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 Received: from mail-ww0-f45.google.com (HELO mail-ww0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Feb 2011 22:59:08 +0000 Received: by wwb29 with SMTP id 29so5230361wwb.2 for ; Mon, 07 Feb 2011 14:59:06 -0800 (PST) Received: by 10.227.144.15 with SMTP id x15mr1049240wbu.188.1297119524383; Mon, 07 Feb 2011 14:58:44 -0800 (PST) Received: from localhost (150.136.18.95.dynamic.jazztel.es [95.18.136.150]) by mx.google.com with ESMTPS id i80sm2481477wej.4.2011.02.07.14.58.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Feb 2011 14:58:43 -0800 (PST) Date: Mon, 07 Feb 2011 22:59:00 -0000 From: David Sastre To: cygwin@cygwin.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@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 X-SW-Source: 2011-02/txt/msg00197.txt.bz2 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1122 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 Content-length: 198 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk1QeSIACgkQYX05bESLMet86wCgmh36gFCNaE86m95uCZEZL+HZ ou4An1ghPN3EHWRtmuEeJz1IZp8aVcOT =E3Lx -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--