LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2003, 07:41 PM   #1
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
.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?

Last edited by realos; 12-20-2003 at 08:37 PM.
 
Old 12-20-2003, 08:46 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 69
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get next executed line phuna Programming 2 07-08-2005 01:05 AM
PLEASE HELP! URGENT! ".bashrc" Not executed phoenix7 Linux - Distributions 1 10-08-2004 09:17 PM
cgi is displayed and not executed sterrenkijker Linux - Newbie 3 06-12-2004 03:42 AM
.bash_logout does not get executed nearfar Linux - Newbie 3 10-17-2003 12:40 PM
.xinitrc isn't executed hampel Linux - Software 5 08-06-2003 04:53 AM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration