On Tue, 11 Sep 2001, Dr . Sharukh K . R . Pavri . wrote:
> > This may be a distro specific quirk, just do a cp of your
> > .bash_profile to .bashrc, and it is likely to work ...
> > Bish
> Many thanks that worked, I just added the aliase to .bashrc; but why does it
> work like this such that in console a different file is sourced than when in
> X ?
this depends on how the terminal emulator ( kvt/xterm/rxvt) is invoked by
the window/desktop manager. For instance in xterm the -ls option is
necessary to make it read the .bashrc same in rxvt.
-- sreangsu
<quote man bash>
When bash is invoked as an interactive login shell, it
first reads and executes commands from the file /etc/pro-
file, if that file exists. After reading that file, it
looks for ~/.bashprofile, ~/.bashlogin, and ~/.profile,
in that order, and reads and executes commands from the
first one that exists and is readable. The --noprofile
option may be used when the shell is started to inhibit
this behavior.
When a login shell exits, bash reads and executes commands
from the file ~/.bashlogout, if it exists.
When an interactive shell that is not a login shell is
started, bash reads and executes commands from ~/.bashrc,
if that file exists. This may be inhibited by using the
--norc option. The --rcfile file option will force bash
to read and execute commands from file instead of
~/.bashrc.
</quote>
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help