From owner-freebsd-questions Thu Nov 21 00:57:43 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA13234 for questions-outgoing; Thu, 21 Nov 1996 00:57:43 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA13229 for ; Thu, 21 Nov 1996 00:57:41 -0800 (PST) From: Greg Lehey Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vQUx0-000QrEC; Thu, 21 Nov 96 09:57 MET Received: (grog@localhost) by freebie.lemis.de (8.8.3/8.6.12) id JAA02159; Thu, 21 Nov 1996 09:54:32 +0100 (MET) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Message-Id: <199611210854.JAA02159@freebie.lemis.de> Subject: Re: ld.so and emacs problems In-Reply-To: <53961120211735/0006695923PK1EM@MCIMAIL.COM> from MDM at "Nov 20, 96 04:17:00 pm" To: MDM+aSACODEF%Sacodefense@mcimail.com (MDM) Date: Thu, 21 Nov 1996 09:54:32 +0100 (MET) Cc: questions@FreeBSD.org (FreeBSD Questions) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk MDM writes: > I have completed installing FreeBSD 4.4-Lite from the Walnut Creek 2.1.5 > CD-Rom; there are three problems that I need some help with. Mail to support is currently being forwarded to freebsd-questions@freebsd.org. You'll probably get better responses by sending to that list. > 3. I "chsh"ed the root shell to Bash (and also of my normal account), but > paths and aliases written in the either the /root/.bashrc ( or the > /usr/home/myhome/.bashrc) do not get "accessed" or read or "used". What's > up? You need a .bash_profile as well for a login shell. To quote the man page: When bash is invoked as a login shell, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behav- ior. When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc. My .bash_profile contains simply: if [ -f ~/.bashrc ]; then source ~/.bashrc; fi Thinking about it, it would seem logical just to link them together. Greg