BASH_ENV ignored on solaris?
- by Peeter Joot
In my .bash_profile, executed for both my interactive and non-interactive logins are
BASH_ENV=$HOME/.myinteractivestuff
export BASH_ENV
doing this for bash on Linux works fine, but on Solaris is not sourced:
bash --version
GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10)
Curiously, if I invoke screen within my login shell, BASH_ENV is then read. Are any restrictions on when $BASH_ENV is respected on Solaris? In my case I'm logging in with ssh using putty, but also tried unix to unix ssh, and telnet and see the same.
Note that I know that my BASH_ENV variable assignment is being executed since I can echo this variable after login without any trouble (ie: ruling out the obvious possibility that my .bash_profile is also not being read).