Mail Archives: djgpp/1998/12/20/04:21:34
On Thu, 17 Dec 1998, David Christensen wrote:
> c:\_bash_profile doesn't seem to get executed on either box.
That's because .bash_profile is only read by a *login* shell. A login
shell is the one invoked when you log into a Unix system, which can't
happen on Windows. To make Bash behave like a login shell, invoke it
with the -login switch.
The reason for two startup files (.bashrc and .bash_login) is that a
login shell usually does all kinds of setups that are only needed
once. That is why each kind of shell (login and non-login) reads only
one of these two files.
This is all described in the Bash manual (see the section INVOCATION).
- Raw text -