Date: Fri, 6 Mar 2009 03:21:59 +0100 From: Polytropon <freebsd@edvax.de> To: Peter Steele <psteele@maxiscale.com> Cc: freebsd-questions@freebsd.org Subject: Re: /bin/sh does not read profile Message-ID: <20090306032159.12ea365a.freebsd@edvax.de> In-Reply-To: <31137799.01236305475066.JavaMail.HALO$@halo> References: <20090306004003.99091e42.freebsd@edvax.de> <31137799.01236305475066.JavaMail.HALO$@halo>
index | next in thread | previous in thread | raw e-mail
On Thu, 5 Mar 2009 18:11:18 -0800 (PST), Peter Steele <psteele@maxiscale.com> wrote:
> I have a similar problem, but with bash. I have both my personal
> account and root set to use bash instead of sh and when I login
> the .bashrc file is not read. My system does not have an X
> environment, it's plain old BSD. How can I get it to load .bashrc
> when I login? I'm using a 7.0 binary release.
I read from the manpage bash-3.2.25 according to the FILES section:
/etc/profile
The systemwide initialization file, executed for login shells
~/.bash_profile
The personal initialization file, executed for login shells
~/.bashrc
The individual per-interactive-shell startup file
When the shell is the login shell (prefixed with - in the process
list), it seems that it needs to read ~/.bash_profile (and not
the ~/.bashrc file). So you could put
. ~/.bashrc
into ~/.bash_profile to get a workaround.
--
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090306032159.12ea365a.freebsd>
