On Wed, 12 Jun 2002, The African Chief wrote:
> Earnie Boyd wrote:
> >What does the current user base think? Should the setting of
> >`ENV=.bashrc' be exported from /etc/profile?
> I think so, at least, from the point of view of compatibility. From
> what I can see in other systems (Linux, Solaris, and Cygwin)
> ~/.bashrc is always processed when bash starts.
According to the bash documentation, if a bash interactive shell is
started as 'sh' then it does not automatically read .bashrc whereas,
if the shell is started as 'bash' then bashrc is automatically read.
So, an alternative to `ENV=.bashrc' is to execute the shell as 'bash'
rather than 'sh'. This seems like a better solution to me since then
bash won't enable any code to pretend to be 'sh' and the SHELL
environment variable would be more expressive. Unfortunately, MSYS
does not provide a /bin/bash binary.