[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/0.9.8.1 (Linux) |
On 2007-09-06, asherwolf wrote:
>
> On 2007-09-06, asherwolf wrote:
>>
>> I have the following in my root ~/.bash_profile:
>>
>> PATH=$PATH:$HOME/bin
>> .....
>> 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>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
.