Renat,

Did your default Gentoo install act the same. I..E.. when you login to KDE, GNOME or 
what ever
your using and when you open the console the bash promt is at its default.

Example:
bash-2.05b$

Thanks,
JBanks
--- Renat Golubchyk <[EMAIL PROTECTED]> wrote:
> On Friday 03 October 2003 16:51, Joshua Banks wrote:
> > 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.
> 
> [snip]
> 
> > 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.
> 
> Well, if it seems that ~/.bash_profile is trying to source ~/.bashrc then you 
> should check your ~/.bash_profile . My ~/.bash_profile (which is gentoo 
> default) looks like this:
> -------- start here --------
> # /etc/skel/.bash_profile:
> # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bash_profile,v 1.10 
> 2002/11/18 19:39:22 azarah Exp $
> 
> 
> # This file is sourced by bash when you log in interactively.
> [ -f ~/.bashrc ] && . ~/.bashrc
> 
> -------- end here --------
> (the line after "$Header" has been broken by my mailer.)
> 
> So as you can see, the last line checks whether ~/.bashrc is present and then 
> sources it. That's why you create an infinite loop. There is also no point in 
> sourcing ~/.bash_profile in ~/.bashrc since ~/.bashrc is read every time you 
> start an interecetive shell (start a terminal emulator like xterm or eterm or 
> Konsole in KDE, etc.) and ~/.bash_profile only when you start a login shell, 
> which happens in most cases when you login at a virtual console (or start 
> bash with "-l" or "--login").
> 
> Since I want to see the changes _immediately_ I only change ~/.bashrc and 
> source it from ~/.bash_profile for the rare cases when I login at a console.
> 
> 
> Cheers,
> Renat
> 
> 
> --
> [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