X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-7.2 required=5.0	tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <50353D71.9000306@dancol.org>
Date: Wed, 22 Aug 2012 13:13:37 -0700
From: Daniel Colascione <dancol@dancol.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: /etc/profile
References: <loom.20120821T114938-389@post.gmane.org> <20120822191002.GA5467@pris.crapsteak.org>
In-Reply-To: <20120822191002.GA5467@pris.crapsteak.org>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig56FB6924493B3F64E1E50AE8"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig56FB6924493B3F64E1E50AE8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 8/22/12 12:10 PM, David Sastre Medina wrote:
> On Tue, Aug 21, 2012 at 10:16:28AM +0000, Achim Gratz wrote:
>> I'm removing the Windows PATH in my startup scripts since there's nothin=
g in
>> there that I think should be accessible from Cygwin.
>> For (t)csh this is easy enough to do with dropping a script into /etc/pr=
ofile.d
>> that gets executed first, but there's no such provision for sh and the i=
lk since
>> PATH is set up already before it get there.  Now, unless profile gets ch=
anged I
>> can still cut off "/usr/local/bin:/usr/bin:" with a profile.d script, bu=
t I
>> think it might be preferrable that the Windows path gets recorded into
>> ORIGINAL_PATH or some similar name at the beginning of profile.  It woul=
d then
>> be a simple matter to later add the Windows path where appropriate, but =
I don't
>> think the default path should have it at all.
>> Also, there are two things in profile that may admit slight improvement =
(a place
>> where LC_COLLATE is specified just for one command and better guarding a=
gainst a
>> missing or non-cdable /etc/skel).
>=20
> All three changes will be available in the next release (profile_d
> modification taken from your last version in this thread).

Are you sure that's actually a good idea? I don't agree with this logic:

>> I'm removing the Windows PATH in my startup scripts since there's
nothing in
>> there that I think should be accessible from Cygwin.

People execute Windows programs using Cygwin all the time. With this
change, basic things like "cmd" and "notepad" will fail to work.
Working with Windows programs is the *point* of Cygwin. I really don't
think this change should go into the default startup scripts.



--------------enig56FB6924493B3F64E1E50AE8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlA1PXEACgkQ17c2LVA10Vs2BQCeOWmjsJ9WIAdHcoUilcjH3QEn
EZoAnjkmsxi+N8mNW+uId3n+gXeNcVg2
=jONZ
-----END PGP SIGNATURE-----

--------------enig56FB6924493B3F64E1E50AE8--
