> I have been trying to do the following:
> su - pgsql -c "env"
>
> For some reason my user's ~/.bash_profile is not being sourced.
> Neither is my /etc/profile. Any insight appreciated.
By default, bash will not source any login shell startup files when the
shell is not interactive. There is a compile-time option in config-top.h
(NON_INTERACTIVE_LOGIN_SHELLS) to enable this; edit config-top.h and
rebuild bash.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/