Date: Wed, 12 Feb 2003 18:52:21 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Jim Trigg <jtrigg@scadian.net> Cc: freebsd <freebsd-questions@FreeBSD.ORG> Subject: Re: bash Message-ID: <20030212165221.GA3909@gothmog.gr> In-Reply-To: <20030212162941.GA46589@scadian.net> References: <OE13Rqf69aZbLAX3cf300007b5a@hotmail.com> <20030212152208.GA2237@gothmog.gr> <20030212162941.GA46589@scadian.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-02-12 11:29, Jim Trigg <jtrigg@scadian.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030212165221.GA3909>