# Tcsh special alias cwdcmd causes the v10 loadLSST.csh to fail.

XMLWordPrintable

## Details

• Type: Bug
• Status: To Do
• Resolution: Unresolved
• Fix Version/s: None
• Component/s:
• Labels:
None
• Team:
SQuaRE

## Description

In loadLSST.csh the LSST_HOME environment variable is set by:

 if ( ! ${?LSST_HOME} ) then  set LSST_HOME = dirname${this_script}  set LSST_HOME = cd ${LSST_HOME} && pwd endif  If cwdcmd is used to set the window title with something like this:  alias cwdcmd 'echo -n "2;${HOST}:\$cwd ^G"' 

the cd command in the script echos those commands and does not set LSST_HOME properly.

## Activity

Hide
Kian-Tat Lim added a comment -

The loadLSST scripts for other, more reasonable, shells look fine.

While the stack is apparently not completely relocatable, we should be striving to make it so.

Show
Kian-Tat Lim added a comment - The loadLSST scripts for other, more reasonable, shells look fine. While the stack is apparently not completely relocatable, we should be striving to make it so.
Hide
Tim Jenness added a comment -

This code has not been fixed in nearly five years so it's highly likely we aren't going to fix it any time soon. Should we keep this ticket open and hope that someone else fixes it?

Show
Tim Jenness added a comment - This code has not been fixed in nearly five years so it's highly likely we aren't going to fix it any time soon. Should we keep this ticket open and hope that someone else fixes it?
Hide
John Swinbank added a comment -

Give that we clearly don't have effort to prioritise this on-project, I think our options are to simply leave the ticket open (as Tim suggests), or to acknowledge that we can't support this code and remove loadLSST.csh entirely. I have no real preference.

Show
John Swinbank added a comment - Give that we clearly don't have effort to prioritise this on-project, I think our options are to simply leave the ticket open (as Tim suggests), or to acknowledge that we can't support this code and remove loadLSST.csh entirely. I have no real preference.
Hide
Tim Jenness added a comment -

I vote for the option that involves less work on this ticket. (ie leave it open and move on). If someone else complains about tcsh support we can reconsider.

Show
Tim Jenness added a comment - I vote for the option that involves less work on this ticket. (ie leave it open and move on). If someone else complains about tcsh support we can reconsider.
Hide
Chris Walter added a comment -

Sorry... am traveling now. I agree that if we close it we should remove the .csh script and say it is not supported.

I personally moved to Bash because of this.  But as long as csh is actually supported there should be a way for someone to find this information. It is possible to use but you need to be careful.

So I agree with leaving it open.

Show
Chris Walter added a comment - Sorry... am traveling now. I agree that if we close it we should remove the .csh script and say it is not supported. I personally moved to Bash because of this.  But as long as csh is actually supported there should be a way for someone to find this information. It is possible to use but you need to be careful. So I agree with leaving it open.

## People

• Assignee:
Frossie Economou
Reporter:
Chris Walter
Watchers:
Chris Walter, John Swinbank, Kian-Tat Lim, Tim Jenness