Xwin and .bashrc
Pierre A. Humblet
Pierre.Humblet@ieee.org
Wed Dec 20 07:11:00 GMT 2000
What you describe seems to conform to the bash documentation.
A login shell does not read .bashrc. You would need to
explicitly source it from .bash_profile
Pierre
************************
When bash is invoked as an interactive login shell, or as
a non-interactive shell with the --login option, it first
reads and executes commands from the file /etc/profile, if
that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, 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 behav-
ior.
When a login shell exits, bash reads and executes commands
from the file ~/.bash_logout, 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.
Bernard Revet wrote:
>
> > Dear Gerrit , Dear Cygwinnies
>
> I thank you for your message and that pushed me to do some extra assays.
> What is funny in this case is that finally I put all my aliases and exported
> variables in .bash_profile and not in .bashrc as I was trying to do . To my
> surprise everything was taken into account then at startup .
> At least for now this is a solution .
> I am not going to look more deeply why .bashrc is taken into account under your
> configuration and .bash_profile under my configuration. The most important is that
> it works
>
> Best regards
> Yours
> Bernard
>
> PS
> Some people mention that they had some problems to have Xwin starting correctly.
> I obseved the following at least under my configuration Gateway crystal scan
> monitor.
> For instance starting windows NT in 8 bits mode 1024x768 pixels , everything is OK
> for Windows NT.
> If I start Xwin 1024x768x8 Sometimes it is OK but it happens that I get only the
> grey screen with the X not moving. Going back to 800X600X8 then the session starts
> correctly. Stopping and starting again with 1024x768x8 then it works fine ????
More information about the Cygwin-xfree
mailing list