Operating System - HP-UX
1754050 Members
4000 Online
108811 Solutions
New Discussion юеВ

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 3
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.