delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/20/04:21:34

Date: Sun, 20 Dec 1998 11:21:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: GNU Software for MS-Windows and MS-DOS
In-Reply-To: <75cuo8$e07$1@pollux.dnai.com>
Message-ID: <Pine.SUN.3.91.981220112103.27996B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019