DragonFly BSD
DragonFly users List (threaded) for 2006-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: .bashrc not working


From: David Nugent <davidn@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Mar 2006 12:07:35 +1100

elekktretterr@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

$ORIG_PATH:/usr/pkg/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/pkg/sbin:/....



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]