(t)csh if query

karl_kleinpaste at cis.ohio-state.edu karl_kleinpaste at cis.ohio-state.edu
Wed Sep 5 06:40:23 AEST 1990


cloos at acsu.buffalo.edu writes:
   What I tried is:
	   if ( ($HOSTTYPE)=sun3 && ($TERM)=sun ) X11

"==", not "=".  Parenthesize around the whole expression, too:

   if (($HOSTTYPE == sun3) && ($TERM == sun)) X11

--karl



More information about the Comp.unix.shell mailing list