delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/22/15:10:18

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_PGP_SIGNED,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Date: Wed, 22 Aug 2012 21:10:04 +0200
From: David Sastre Medina <d DOT sastre DOT medina AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /etc/profile
Message-ID: <20120822191002.GA5467@pris.crapsteak.org>
References: <loom DOT 20120821T114938-389 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20120821T114938-389@post.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 nothing=
 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/pro=
file.d
> that gets executed first, but there's no such provision for sh and the il=
k since
> PATH is set up already before it get there.  Now, unless profile gets cha=
nged I
> can still cut off "/usr/local/bin:/usr/bin:" with a profile.d script, but=
 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 would=
 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 ag=
ainst a
> missing or non-cdable /etc/skel).

All three changes will be available in the next release (profile_d
modification taken from your last version in this thread).

Thanks.

--=20
Primary key fingerprint: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56

--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iF4EAREIAAYFAlA1LoUACgkQ95urBFKZ7FYOzgD7Bl60rP4V50T6KE6ch6OYM3v8
wWaojjpy1u5o0q4l8uQA/jxZU/lDlZJPnQNvJgY3fSAt8uvblUDDJRPwBdMojmBc
=O1UW
-----END PGP SIGNATURE-----

--ZGiS0Q5IWpPtfppv--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019