Re: Terminal versus xterm anomaly
Re: Terminal versus xterm anomaly
- Subject: Re: Terminal versus xterm anomaly
- From: Nick Phillips <email@hidden>
- Date: Tue, 22 Mar 2005 11:32:39 +1200
On 21/03/2005, at 9:28 PM, Tommy Nordgren wrote:
It appears that the bash shell don't read it's initialisation files
correctly in the xterm window.
The bash initaliation files .bash_profile or .bash_login are not read.
Because of this, the
PATH environment variable is not setup to include the /usr/local/bin
and ~/bin directrories.
I've managed to correct this in the FIRST xterm window opened when the
x11 App launches,
but subsequent windows don't get correctly initialised.
Thankful for any useful idea on how to fix this.
.bash_profile, .profile, .login, .bash_login are not the only bash
startup
files.
For non-login shells, .bashrc is the appropriate place to stick setup
stuff.
The concept of a "login shell" can be fairly confusing, but basically if
a shell is the thing that gets run right after you authenticate, it's
a login shell. So if you login on a serial port, or directly at a text
console, the shell you get dumped into is a login shell.
It starts to get confusing when you login directly to a graphical
environment, or when ssh declines to make the shell it gives you a login
shell -- it does this because any text which gets output when starting
up
a login shell will break various of the more cunning things that ssh
tries to do.
Google around and I'm sure you'll find a better explanation somewhere.
Or
better still, several better explanations that all disagree with each
other :-P
But I wouldn't recommend making your xterms login shells; better just to
make your .bashrc source your .bash_profile.
Cheers,
Nick
--
Nick Phillips / +64 3 479 4195 / email@hidden
# these statements are my own, not those of the University of Otago
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden