🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1066

Re: (t)csh if query

#1066
From: Jonathan I. Kamens
Date: Tue, 04 Sep 1990 19:13
20 lines
1160 bytes
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
Technical Details
Message-ID: <1990Sep4.191357.12276@athena.mit.edu>
Path: arc1-ca.pugleaf.net!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
References: <34710@eerie.acsu.Buffalo.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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