From owner-freebsd-questions Mon Apr 26 16:44:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 5F1EF1539B for ; Mon, 26 Apr 1999 16:44:48 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id QAA13527; Mon, 26 Apr 1999 16:44:44 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 26 Apr 1999 16:44:43 -0700 (PDT) From: Doug White To: Mike Roberts Cc: freebsd-questions Subject: Re: bash startup scripts In-Reply-To: <00a001be8f9d$f9182860$0100a8c0@kermit> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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