(t)csh if query
Jonathan I. Kamens
jik at athena.mit.edu
Wed Sep 5 05:13:57 AEST 1990
In article <34710 at eerie.acsu.Buffalo.EDU>, cloos at 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 at Athena.MIT.EDU Allston, MA 02134
Office: 617-253-8495 Home: 617-782-0710
More information about the Comp.unix.shell
mailing list