On Sun, Nov 02, 2014 at 04:36:15PM -0600, Bruce Dubbs wrote:
> Armin K. wrote:
> >On 11/02/2014 11:06 PM, Guy Dalziel wrote:
> >I tend to use append instead of prepend, so it goes: export
> >LD_LIBRARY_PATH=$XORG_PREFIX/lib:$LD_LIBRARY_PATH. Even if
> >LD_LIBRARY_PATH was empty, nothing will get broken that way.
> 
> Or you could just use the pathappend() or pathprepend() bash functions in
> the BLFS section 'The Bash Shell Startup Files'.

I didn't bother using them as I figured they just do what I usually do
manually, but it seems they're a bit smarter than that and don't add
null values or values that already exist.

I tried Armin's suggestion but the existence of a null value anywhere in
the path seems to break it, and so having the pathappend function
definitely seems like the sane way to go.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to