From owner-freebsd-questions Wed Feb 12 16:27:27 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8992737B401 for ; Wed, 12 Feb 2003 16:27:26 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C063243FB1 for ; Wed, 12 Feb 2003 16:27:24 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a159.otenet.gr [212.205.215.159]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h1D0RK4A027048; Thu, 13 Feb 2003 02:27:22 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.7/8.12.7) with ESMTP id h1CGqLNQ004011; Wed, 12 Feb 2003 18:52:21 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.7/8.12.7/Submit) id h1CGqLP3004010; Wed, 12 Feb 2003 18:52:21 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 12 Feb 2003 18:52:21 +0200 From: Giorgos Keramidas To: Jim Trigg Cc: freebsd Subject: Re: bash Message-ID: <20030212165221.GA3909@gothmog.gr> References: <20030212152208.GA2237@gothmog.gr> <20030212162941.GA46589@scadian.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030212162941.GA46589@scadian.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-12 11:29, Jim Trigg wrote: > On Wed, Feb 12, 2003 at 05:22:08PM +0200, Giorgos Keramidas wrote: > > The files that bash runs for login shells are in order: > > > > ~/.bash_profile > > ~/.bash_login > > ~/.profile > > > > Any of these can include the `. .bashrc' command, but I picked > > .bash_profile because it's what I commonly use. > > That is true but not quite accurate; bash will only run one of the > three, so if you have a .bash_login (for example), putting the command > in .profile will have no effect, and there is no point to having both > .bash_profile and .bash_login as only .bash_profile will get used. Yep. Bash stops trying to find a startup file for login shells when one of the files mentioned above is found. Perhaps my wording was not very good :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message