X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Date: Mon, 26 Mar 2012 23:02:43 +0200 From: David Sastre Medina To: cygwin AT cygwin DOT com Subject: Re: Proposed change to base-files /etc/bash.bashrc: see whether PS1 has already been set Message-ID: <20120326210242.GB4183@pris.crapsteak.org> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1LKvkjL3sHcu1TtY" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 --1LKvkjL3sHcu1TtY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 26, 2012 at 09:12:11PM +0100, David Caldwell wrote: > >On Mon, Mar 26 2012 at 09:22:3147PM +0200, David Sastre Medina wrote: > >>On Mon, Mar 26, 2012 at 04:40:31PM +0100, David Caldwell wrote: > >> I can't figure out where the CVS is for base-files, but I wanted to > >> propose that the file: > >> > >> /etc/bash.bashrc Oops! So sorry. I (obviously) overlooked this line... =20 > I'm not sure why one would need to alter /etc/profile to create an > /etc/profile.d script, but I'm open to hearing more. What I tried to say is that by adding a custom /etc/profile.d/ script, you are overriding the default setup for bash, and therefore it would not be that weird to alter also /etc/profile. I never implied that by adding the former one would be forced to alter the latter. > I suppose an alternative, equivalent change to the one I originally > proposed might be to execute /etc/bash.bashrc *before* executing the > files in /etc/profile.d; either makes sense to me. I'm not sure what > the precedence order of those ought to be but my view is bash.bashrc > ought to be executed first as it is providing out-of-the-box defaults > and /etc/profile.d is intended for local modification. I see what you mean. It looks a much simpler solution to swap those lines. I'll check it doesn't (unexpectedly) break anything else and add it for the= =20 next release. Thanks. --=20 Primary key fingerprint: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 --1LKvkjL3sHcu1TtY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iF4EAREIAAYFAk9w2W4ACgkQ95urBFKZ7FZqlAD/egjPTvEoKIgZN7IRVcNhKVcF uxmDt0CkZu6acUYziG8A/2AoJvr7XiamXHk7fWaNyrrilbBDVot8nVd8uifItHg8 =mEM+ -----END PGP SIGNATURE----- --1LKvkjL3sHcu1TtY--