Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Subject: Re: .bashrc not getting sourced? From: David Means To: cygwin AT cygwin DOT com In-Reply-To: <5.1.0.14.2.20020326113247.05f61318@lnxmain> References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020326113247 DOT 05f61318 AT lnxmain> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-AHTqPt0HZpdrF28MZP2d" Date: 26 Mar 2002 13:52:43 -0500 Message-Id: <1017168763.28059.62.camel@milo> Mime-Version: 1.0 --=-AHTqPt0HZpdrF28MZP2d Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I believe that .bash_login, .bash_profile or .profile is the file you're wanting to use in this instance. man bash { snip } When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc. { snip } If you're realling wanting .bashrc to be sourced on a login-shell, then you'll either need to set BASH_ENV=3D$HOME/.bashrc, or source it from your $HOME/.profile, or from /etc/profile. David On Tue, 2002-03-26 at 11:37, Roland Glenn McIntosh wrote: > I just did a recent brand new install yesterday and I noticed that /etc/p= rofile no longer contains a line like: >=20 > test -f ./.bashrc && . ./.bashrc >=20 > It took me a second to figure out why .bashrc wasn't getting read (I thou= ght it happened automatically by the shell) until I compared it to an older= "working" cygwin install. >=20 > Is there a specific reason for that missing line in /etc/profile, or coul= d it have been an oversight? I did notice that my redhat 7 system's /etc/p= rofile doesn't seem to include such a line. > -rgm >=20 >=20 >=20 > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ --=20 The Meaning of Life, the Universe and Everything: 10x + 5x - 35 =3D x + 7 --=-AHTqPt0HZpdrF28MZP2d Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEABECAAYFAjygw3sACgkQUd0KwqAz4aoxIwCfQ3/Livl1M2K4JwDC4KZ2AB8X cpUAn26Kn1JqcecZy4bf015qH46xHFqP =zhKN -----END PGP SIGNATURE----- --=-AHTqPt0HZpdrF28MZP2d--