Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: "Masterson, Dave" To: "'Earnie Boyd'" , "Masterson, Dave" , "'cygwin AT sources DOT redhat DOT com'" Subject: RE: /etc/profile in BASH Date: Fri, 29 Sep 2000 08:49:38 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" I didn't realize that a login BASH doesn't execute ~/.bashrc. Be that as it may, I think it should be the decision of ~/.bash_profile (or ~/.profile) whether to execute ~/.bashrc -- *NOT* /etc/profile. Putting this into /etc/profile makes it too BASH-centric. What about the [T]CSH users? Also, what about ~/.bash_login files (as described in the MAN page)? -----Original Message----- From: Earnie Boyd [mailto:earnie_boyd AT yahoo DOT com] Sent: Friday, September 29, 2000 5:04 AM To: Masterson, Dave; 'cygwin AT sources DOT redhat DOT com' Subject: Re: /etc/profile in BASH --- "Masterson, Dave" wrote: > Question: > > In Cygwin 1.1, why are the last two lines of the installed /etc/profile the > following? > > test -f ./.profile && . ./.profile > test -f ./.bashrc && . ./.bashrc > > As described in the BASH MAN page, it would seem that BASH does this already > after reading /etc/profile. Is this required because of the implementation > of Cygwin on MS-Windows? > IMO, the test -f ./.profile && . ./.profile isn't needed, it will get executed by bash anyway. The test -f ./.bashrc && . ./.bashrc is needed because when bash is in login state it doesn't process ~/.bashrc. In login state both /etc/profile and ~/.profile are executed. In non-login state /etc/profile and ~/.profile aren't executed but ~/.bashrc is but IIRC only for the interactive state. Cheers, ===== Earnie Boyd mailto:earnie_boyd AT yahoo DOT com --- --- --- Cygwin: POSIX on Windows --- --- Minimalist GNU for Windows --- __________________________________________________ Do You Yahoo!? Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com