bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .bash_profile not sourcing


From: Chet Ramey
Subject: Re: .bash_profile not sourcing
Date: Mon, 19 Feb 2001 12:18:01 -0500

> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]