(t)csh if query
james cloos
cloos at acsu.buffalo.edu
Wed Sep 5 05:00:31 AEST 1990
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 at acsu.buffalo.edu
+1 716 673-1250 Personal ZipCode= 14048-0772
More information about the Comp.unix.shell
mailing list