.bashrc not working

David Nugent davidn at datalinktech.com.au
Tue Mar 21 17:07:35 PST 2006

elekktretterr at xxxxxxxxxxxxxx wrote:
Hi there,
for some reason it appears that .bashrc is not being read after a login.
It contains this line:
export PATH=$PATH:/usr/pkg/bin:/usr/pkg/sbin

if i run this directly on the command line it works.

Any ideas whats wrong? Im running 1.4.
By default, bash does not source .bashrc on login. Your .profile (or 
. bash_login) should do that explictly if you need it.

. bashrc is sourced when bash starts up in the non-login mode, which is 
why you should not really be recursively changing environment variables 
in it as you are, otherwise you'll duplicate what you are adding every 
time you invoke another level of shell and you end up with


More information about the Users mailing list