cancel
Showing results for 
Search instead for 
Did you mean: 

SHLIB_PATH in profile file

SOLVED
Go to solution
hemantbs11
Advisor

SHLIB_PATH in profile file

Hi,
I have SHLIB_PATH exported a number of times in a single .profile file
Should the latest export of SHLIB overwrite the older paths exported.

Ex: .profile
--> export SHLIB_PATH=$SHLIB_PATH:/usr/local/apache2/lib
--> export SHLIB_PATH=$SHLIB_PATH:$ORACLE_HOME/lib
--> export SHLIB_PATH=/opt/java1.4/jre/lib/PA_RISC/classic

what would be SHLIB_PATH exported after .profile is executed in this case.
3 REPLIES
Dennis Handly
Acclaimed Contributor
Solution

Re: SHLIB_PATH in profile file

The first two append to the end. The last one completely replaces the other two.
hemantbs11
Advisor

Re: SHLIB_PATH in profile file

Thank you Dennis.

This means SHLIB_PATH will be set to '/opt/java1.4/jre/lib/PA_RISC/classic'
at the end of .profile execution.
Any previously set paths will be overwritten by such export?
Dennis Handly
Acclaimed Contributor

Re: SHLIB_PATH in profile file

>Any previously set paths will be overwritten by such export?

Exactly. Actually ALL exports override any previous ones. It is only that if the RHS includes the previous values that you can append.