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

Re: Appending to BASH Environmental Variables



> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/

Except if PKG_CONFIG_PATH is empty to begin with, and/or you don't mind 
multiple instances of /usr/local/lib (in case it was already in 
$PKG_CONFIG_PATH), and you're sure you want to *append* /usr/local/lib/ 
instead of *prepending* it. i.e.:

export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH

Please take a look at http://www.archlug.org/kwiki/DesktopProfileKwikis 
for some pointers on building some functions that help you manage these 
sorts of variables properly.

P.S. It would be most excellent for someone to post a function factory 
for these to the Kwiki page.

Mike/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.