Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

if: Expression Syntax error fix when sshing to server UNIX
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.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[5,669 views]  

if: Expression Syntax error fix when sshing to server | 1 comments | Create New Account
Click here to return to the 'if: Expression Syntax error fix when sshing to server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
if: Expression Syntax error fix when sshing to server
Authored by: LouieNet on May 11, '03 10:06:04PM
What does your ${tcsh_initdir} variable look like that causes this error? Do you have non-alphanumeric characters in there?

Louie

---
G4 cube, 1152M RAM, OS X Server 10.2.4

[ Reply to This | # ]