There has been at least one hint here in the past about correcting an if expression around the TERM_PROGRAM variable in the /usr -> share -> tcsh -> examples -> aliases file. After users started adding ~/Library -> init -> tcsh -> *.mine files to their accounts on a server I maintain, another error, if: Expression Syntax, started showing up upon sshing in. The problem is, once again, in the /usr -> share -> tcsh -> examples -> aliases file. The last if statement in the script is:
if (-r ${tcsh_initdir}/aliases.mine) then
The fix is to add quotes around the path to user's aliases.mine file like this:
if (-r "${tcsh_initdir}/aliases.mine") then
The rest of the if block is fine, and logins once again proceed without error.
Mac OS X Hints
http://hints.macworld.com/article.php?story=2003050115193999