This is the mail archive of the
cygwin-xfree@sources.redhat.com
mailing list for the Cygwin project.
Re: Xwin and .bashrc
- To: Bernard Revet <bmrevet at igr dot fr>
- Subject: Re: Xwin and .bashrc
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- Date: Wed, 20 Dec 2000 10:17:45 -0500
- CC: gerrit dot haase at t-online dot de, cygwin-xfree at sources dot redhat dot com
- References: <3A3EA364.13414.D5FB14@localhost> <3A40A76B.98301852@igr.fr>
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 ????