Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 1999 16:44:43 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Mike Roberts <zoarre@bigfoot.com>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: bash startup scripts
Message-ID:  <Pine.BSF.4.03.9904261643420.6951-100000@resnet.uoregon.edu>
In-Reply-To: <00a001be8f9d$f9182860$0100a8c0@kermit>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Apr 1999, Mike Roberts wrote:

> I'm trying to make bash's startup files work, and the behavior that my
> installation exhibits does not seem to match the documentation that I have:
> 
> - The book, "The Complete FreeBSD" claims that bash executes '.profile', and
> then '.bashrc'.
> - The bash man page claims that it executes '.bash_profile' on login, and
> '.bashrc' for each shell (login shell also?).
> - My installation (the package installed with sysinstall) executes
> '.profile' on login, and executes '.bashrc' only when I execute bash again
> from the login shell.
> 
> Which behavior is correct? What do to obtain the proper behavior?

Knowing bash, they're probably all correct. :-)

Bash is intended to be plug-compatible with the original Bourne shell
/bin/sh, so it's no suprise that it also sucks in .profile on startup.  My
suggestion is to be orthogonal and don't mix and match your shell startup
files. :-)

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org



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?Pine.BSF.4.03.9904261643420.6951-100000>