[SATLUG] anyone figure out how to run .profile under X?

Bruce Dubbs bruce.dubbs at gmail.com
Tue Aug 10 20:19:20 CDT 2010


Henry Pugsley wrote:
> On Tue, Aug 10, 2010 at 6:35 PM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
>> Henry Pugsley wrote:
>>> Put everything in .bashrc then source .bashrc from .profile, then you get
>>> the same for login and normal shells.
>> That causes problems if you have something like:
>>
>> Â export PATH=my_special_path:$PATH
>>
>> Generally you don't want to set environment variables in .bashrc

> How does that cause a problem?

Every script that starts runs ~/.bashrc.  You end up with:

PATH=my_special_path:my_special_path:my_special_path:...

   -- Bruce


More information about the SATLUG mailing list