From 023ba62ad77dcc3714288ca23364af119cdc9735 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 4 Dec 2012 13:05:30 +0100 Subject: [PATCH] Avoid to add an empty component into LD_LIBRARY_PATH if it was not set before. --- doc/install.doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/install.doc b/doc/install.doc index 668f0ca92d..51459e03ad 100644 --- a/doc/install.doc +++ b/doc/install.doc @@ -55,7 +55,7 @@ LD_LIBRARY_PATH. \verbatim $ export SIMGRID_ROOT="$HOME/Install/simgrid/" # change it to the path where you installed the SimGrid library $ export SIMGRID_JAVA_ROOT="$HOME/Install/simgrid-java" # change it to the path where you installed the java bindings of SimGrid -$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMGRID_ROOT/lib:$SIMGRID_JAVA_ROOT/java +$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$SIMGRID_ROOT/lib:$SIMGRID_JAVA_ROOT/java $ cd examples $ java -cp .:../simgrid.jar basic/BasicTest platform.xml basic/basicDeployment.xml \endverbatim -- 2.20.1