This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: setup does not create /etc/profile
- From: FischRon dot external at infineon dot com
- To: elfyn-cygwin at exposure dot org dot uk, cygwin at cygwin dot com
- Date: Wed, 4 Jun 2003 10:57:24 +0200
- Subject: RE: setup does not create /etc/profile
>> There is another strange things: When I start bash (by
>clicking on the
>icon
>> on my Windows desktop), by $HOME/.bashrc is not executed (but when I
>invoke
>> a subshell, .bashrc is sourced). Further, my
>$HOME/.bash_profile is not
>> sourced. Should I post this
>> as separate bug on the mailing list?
>
>How are you invoking `bash'? If you want your shell to be a
>login shell you
>have to pass the '--login' option to `bash'.
OK, I resolved this one: After the re-install, my .bash_profile is executed;
and since a click
to the cygwin icon executes /cygwin.bat, which in
turn does a
cygwin --login
it explains why .bashrc is not executed.
Ronald
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/