/etc/profile and ~/.bash_profile are not being read

janne jan.moren at lucs.lu.se
Wed Nov 17 04:34:56 UTC 2004


tis 2004-11-16 klockan 20:20 -0800 skrev Bob Nielsen:
> The default ~/.bash_profile file has
> 
> # include .bashrc if it exists
> if [ -f ~/.bashrc ]; then
>     . ~/.bashrc
> fi
>  
> and
> 
> # set PATH so it includes user's private bin if it exists
> #if [ -d ~/bin ] ; then
> #    PATH=~/bin:"${PATH}"
> #fi
>  
> This will place ~/.bin in the $PATH for login shells only.  If that 
> modification of $PATH is instead placed in ~/.bashrc, it should work in 
> an X terminal, as well.

Except that it will run again every time you start a shell (directly or
indirectly) from an earlier one, which will mean multiple entries in the
path. Not a big deal for the path setting itself - it's unlikely to add
more than a few entries - but it does mean you can't rely on setting
something there once, and once only.

So far, the only solution I've found is to use ~/.gnomerc, which is
wrong on so many levels. But, it does work.




-- 
Trust the Computer. The Computer is your friend.
 
Tel. (Japan) 090-3622 8920            Dr. Jan Morén (mr)
                                      Dept. of Cognitive Science
http://lucs.lu.se/people/jan.moren    Lund, Sweden





More information about the ubuntu-users mailing list