The script bin/thisroot.sh would not be able to set up ROOT env under bash if CDPATH is defined. The following lines in bin/thisroot.sh
will result in an incorrect ROOTSYS if $thisroot is a relative path. In fact, the value of ROOTSYS will be 2 sames path delimited by a space, something like:
Redirecting the output of cd command to /dev/null could resolve this problem.
Please help fix this problem.