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 Message-Id: <4.3.1.2.20020326141343.027fb908@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com Date: Tue, 26 Mar 2002 14:26:41 -0500 To: David Means , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: .bashrc not getting sourced? In-Reply-To: <1017168763.28059.62.camel@milo> References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020326113247 DOT 05f61318 AT lnxmain> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020326113247 DOT 05f61318 AT lnxmain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Wow. That was allot of discussion and conjecture on this topic. Did anyone think of looking at the GNU bash documentation before posting? http://www.lns.cornell.edu/public/COMP/info/bash/bashref_7.html#SEC65 Seems to me this answers the question quite well about where this kind of check is recommended. And no post was required to get the information. ;-) BTW, the check was removed from /etc/profile because bash is not the only shell that reads that file. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX At 01:52 PM 3/26/2002, David Means wrote: >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=$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/profile no longer contains a line like: > > > > test -f ./.bashrc && . ./.bashrc > > > > It took me a second to figure out why .bashrc wasn't getting read (I thought it happened automatically by the shell) until I compared it to an older "working" cygwin install. > > > > Is there a specific reason for that missing line in /etc/profile, or could it have been an oversight? I did notice that my redhat 7 system's /etc/profile doesn't seem to include such a line. > > -rgm > > > > > > > > -- > > 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/ >-- > >The Meaning of Life, the Universe and Everything: > 10x + 5x - 35 = x + 7 -- 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/