LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .bashrc not being executed, why? (https://www.linuxquestions.org/questions/linux-newbie-8/bashrc-not-being-executed-why-127676/)

realos 12-20-2003 06:41 PM

.bashrc not being executed, why?
 
hi,

.bashrc is not being executed after starting a new xterm or even after logging out and in.

-rwxr--r-- 1 testuser_en users 101 2003-12-19 20:32 /home/testuser_en/.bashrc

Actually, I have set some locale variable in .bashrc which is not correctly set after logging out and in..

Strange thing is when I put that stuff in .bash_profile it works smoothly but not in .bashrc., why?

can anybody give a hint?

HappyTux 12-20-2003 07:46 PM

Re: .bashrc not being executed, why?
 
Quote:

Originally posted by realos
hi,

.bashrc is not being executed after starting a new xterm or even after logging out and in.

-rwxr--r-- 1 testuser_en users 101 2003-12-19 20:32 /home/testuser_en/.bashrc

Actually, I have set some locale variable in .bashrc which is not correctly set after logging out and in..

Strange thing is when I put that stuff in .bash_profile it works smoothly but not in .bashrc., why?

can anybody give a hint?

Do you have in the .bash_profile the lines:
Code:

# include .bashrc if it exists

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi



All times are GMT -5. The time now is 09:13 PM.