Closed robbietuk closed 3 years ago
Running sh ../this_SGC.sh from the VoxelisedSimulation directory would set SGCPATH to /Path/To/SGC (observed by echo $SGCPATH in script).
sh ../this_SGC.sh
VoxelisedSimulation
SGCPATH
/Path/To/SGC
echo $SGCPATH
However, running source ../this_SGC.sh would set SGCPATH to /Path/To/SGC/VoxelisedSimulation
source ../this_SGC.sh
/Path/To/SGC/VoxelisedSimulation
Running
sh ../this_SGC.sh
from theVoxelisedSimulation
directory would setSGCPATH
to/Path/To/SGC
(observed byecho $SGCPATH
in script).However, running
source ../this_SGC.sh
would setSGCPATH
to/Path/To/SGC/VoxelisedSimulation