Details
-
Type:
Bug
-
Status: Invalid
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: lsst
-
Labels:None
-
Team:SQuaRE
Description
I see from DM-10587 that the stack should work with tcsh but it doesn't (fully). If you are currently in the LSST_HOME directory when you do source loadLSST.csh then it works fine. But if you are anywhere else source /path/to/loadLSST.csh then it fails to determine LSST_HOME.
The problem is that $0 doesn't work in `tcsh` when a script has been sourced. The following code replacement seems to work in my limited testing:
set called=($_)
|
set split = ($called:as/ / /)
|
set LSST_HOME = `dirname $split[2]`
|
set LSST_HOME = `cd ${LSST_HOME} && pwd`
|
Kian-Tat Lim removed csh support 8 months ago (I can't find the ticket) so closing this.