Hey Tom,

I've been wondering the same thing ever since I installed Gentoo. This must have to do 
with how
the Gentoo install doc walks you through initial install. I use KDM and login into KDE 
as my
desktop. 
>From inside of KDE when I open a console terminal the console terminal always has the 
>generic line
of: 

bash-2.05b$ 

No matter where I'm at in the directory Tree. 
If I "su" its the same thing but ofcourse the "$" is replaced with the "#" sign. 

This didn't really bother me at first until I noticed that I was always having to 
"pwd" to figure
out which directory I was in.. and having to ". /etc/profile" to get somethings to 
work properly.
Kindof annoying. 


Now if I ". /etc/profile",
I get a nice colorful new bash prompt "deadmeat jbanks #" of which I was used to 
see'ing all the
time before going to Gentoo distro. So now I have "machine name" + "current directory" 
for the
shell command prompt and everything is peachee.

What I don't understand is "from reading the <man bash>", and how I'm setup(login 
wise) from boot
to getting to KDE desktop what bash is doing. 

Is this (interactive, non-interactive, what???)Not knowing,

So, I did this:

I added this to ~.bashrc

. /etc/profile 
if [ -r ~/.bash_profile ]; then 
    . ~/.bash_profile 
fi 


This didn't work and anytime I open another console window it would be blank and 
non-responsive.

So I did this to trouble shoot and added this to see what was happening:

echo 1 
. /etc/profile 
echo 2 
if [ -r ~/.bash_profile ]; then 
    . ~/.bash_profile 
fi 
echo 3 


And got:
1
2
1
2
1
2
1

So it would seem that ~/.bash_profile is trying to source ~/.bashrc for some reason, 
making it
create an infinite loop. 

Now remeber I haven't done anything special configuration wise except for following 
the ~x86
Gentoo Install doc.

I just don't have enough experience to know what to do or understand why this is 
happening.


Tom I hope this helps get someone on this forum to give us some explanation as to why 
this is
happening and what todo. 

I would assume that this happens to anyone that follows the install doc.. No? And just 
knows what
todo to remedy the problem. NO?

JBanks






--- Tom Hosiawa <[EMAIL PROTECTED]> wrote:
> > Are you sure that .bash_profile is being sourced somewhere, I know that
> > bash defaults to checking .bashrc.  Make sure that bash is even checking
> > that file.
> 
> Ok, I've determined that it does read the .bash_profile, but what its
> not doing is setting the new PATH
> 
> If I login on a virtual console, that PATH is changed appropriately, but
> if I open up a terminal, PATH is changed to my new setting. Is there
> about gentoo that causes the PATH variable not to be overwritten?
> 
> Tom
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

--
[EMAIL PROTECTED] mailing list

Reply via email to