LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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 07:37 PM.
 
Old 12-20-2003, 07:46 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

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



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 12:05 AM
PLEASE HELP! URGENT! ".bashrc" Not executed phoenix7 Linux - Distributions 1 10-08-2004 08:17 PM
cgi is displayed and not executed sterrenkijker Linux - Newbie 3 06-12-2004 02:42 AM
.bash_logout does not get executed nearfar Linux - Newbie 3 10-17-2003 11:40 AM
.xinitrc isn't executed hampel Linux - Software 5 08-06-2003 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 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
Open Source Consulting | Domain Registration