[Top][All Lists]

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

Re: bash root ~/.bash_profile quirk

From: Chris F.A. Johnson
Subject: Re: bash root ~/.bash_profile quirk
Date: Thu, 6 Sep 2007 20:21:23 -0400
User-agent: slrn/ (Linux)

On 2007-09-06, asherwolf wrote:
> On 2007-09-06, asherwolf wrote:
>> I have the following in my root ~/.bash_profile:
>> .....
>> PKG_CONFIG_PATH is there, but not LD_LIBRARY_PATH (which makes some of my
>> programs not cooperate)
>>>Are you using "su" or "su -"?
> I'm using just su... should I use "su -" ?

   If you use "su -", it does the equivalent of logging in, and thus
   reads .bash_profile; "su" by itself doesn't.

   Chris F.A. Johnson                      <http://cfaj.freeshell.org>
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

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