Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!rutgers!ub!acsu.buffalo.edu From: cloos@acsu.buffalo.edu (james cloos) Newsgroups: comp.unix.shell Subject: (t)csh if query Message-ID: <34710@eerie.acsu.Buffalo.EDU> Date: 4 Sep 90 19:00:31 GMT Sender: news@acsu.Buffalo.EDU Organization: SUNY Buffalo Lines: 21 Nntp-Posting-Host: autarch.acsu.buffalo.edu Hello, I`m trying to set up my ~/.login file so that is the HOSTTYPE variable is set to "sun3" AND if the TERM variable is set to "sun" (My quotes, both times) then it should run the alias "X11". What I tried is: if ( ($HOSTTYPE)=sun3 && ($TERM)=sun ) X11 When .login saw this, it did nothing. When I typed it in a the tcsh prompt I got the message "if: Expression syntax." My obvious question, then, is what is the syntax of the if test expression in (t)csh? Thanx for any replies! -JimC -- James H. Cloos, Jr. cloos@acsu.buffalo.edu +1 716 673-1250 Personal ZipCode= 14048-0772