Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: 6.08/06
-
Fix Version/s: 6.10/00
-
Component/s: Other
-
Labels:None
-
Environment:
Ubuntu 16.04
Description
the following code
export ROOTSYS=/my/path
|
export LD_LIBRARY_PATH=/my/path/lib:/my/path/lib64
|
. thisroot.sh
|
echo $LD_LIBRARY_PATH
|
will print an additional :64 at the end of the LD_LIBRARY_PATH as thisroot.sh tries to remove the old $ROOTSYS/lib but also removes parts of the second path.
I guess this could be fixed by using begin/end of line matches in the sed call.
newpath=`echo $p | sed -e "s;:${drop}:;:;g" \
|
-e "s;:${drop}$;;g" \
|
-e "s;^${drop}:;;g" \
|
-e "s;^${drop}$;;g"`
|
As far as I can see This will also affect thisroot.csh