Making the setup.sh script generated by AtlasCMake a bit more robust
As we learned from Mark Sutton, the cd path/;pwd
formalism may not work well when using the CDPATH environment variable.
This formalism, together with making sure that we are not hit by a user's alias for cd
or pwd
should make the setup scripts a bit more robust.
My local tests were successful with this formalism, so in the end I think this should be an uncontroversial update.