BASH_ENV ignored on solaris?
Posted
by
Peeter Joot
on Server Fault
See other posts from Server Fault
or by Peeter Joot
Published on 2011-11-14T21:46:39Z
Indexed on
2011/11/15
1:57 UTC
Read the original article
Hit count: 198
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).
© Server Fault or respective owner