Path: utzoo!utgpu!watserv1!watmath!att!occrsh!uokmax!apple!julius.cs.uiuc.edu!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!shelby!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.shell Subject: Re: (t)csh if query Message-ID: <1990Sep4.191357.12276@athena.mit.edu> Date: 4 Sep 90 19:13:57 GMT References: <34710@eerie.acsu.Buffalo.EDU> Sender: daemon@athena.mit.edu (Mr Background) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 20 In article <34710@eerie.acsu.Buffalo.EDU>, cloos@acsu.buffalo.edu (james cloos) writes: |> What I tried is: |> |> if ( ($HOSTTYPE)=sun3 && ($TERM)=sun ) X11 if ($HOSTTYPE == sun3 && $TERM == sun) then X11 endif Note that aliases won't work in the one-line if statement format, you have to use the multiple-line format. This is documented quite extensively in the man page. RTFM. Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710