Date: Thu, 14 Oct 1999 23:19:32 +0300 From: d e a t h <charon@hades.hell.gr> To: freebsd-questions@freebsd.org Subject: Re: .bashrc Message-ID: <19991014231932.A11053@hades.hell.gr> In-Reply-To: <3805D6BE.8EB13B39@tudogs.com> References: <3805D6BE.8EB13B39@tudogs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 14, 1999 at 03:12:30PM +0200, Hayden Katzenellenbogen wrote:
> Running Ver 3.2 with the latest bash. when I login in as root my .bashrc
> file runs but for no other user but root. how do I get the normal users
> bashrc files to run
When you log in, the 'normal' file to run is .bash_profile, since the shell
is then a login shell. You ought to have something like:
test -f ~/.bashrc && . ~/.bashrc
somewhere into your .bash_profile file to make Bash read the file .bashrc too.
This all becomes clear when we read in the info pages of bash:
When Bash is invoked as an interactive 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 behavior.
--
Giorgos Keramidas, <keramida@ceid.upatras.gr>
"Curse me if I'm wrong, but don't you want to Slang me?"
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?19991014231932.A11053>
