home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9455 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!byron.u.washington.edu!sue
  2. From: sue@byron.u.washington.edu (Shu-Chen Eclipse)
  3. Newsgroups: comp.unix.questions
  4. Subject: stupid question from a neophyte user
  5. Message-ID: <1992Jul27.194816.3335@u.washington.edu>
  6. Date: 27 Jul 92 19:48:16 GMT
  7. Sender: news@u.washington.edu (USENET News System)
  8. Organization: University of Washington, Seattle
  9. Lines: 23
  10.  
  11. how the hec do I get something simple like this to work:
  12.  
  13.   If ($TERM
  14.   !== "sun" || $TERM!== "sun-cmd")
  15.      then .........
  16.   endif
  17.  
  18. in csh  ????
  19.  
  20. it keeps giving all kinds of errors?!! If I caps If, it gives me one kind, if
  21. i lower case if, gives me another set-- why in sam's whatchamacallit should
  22. "if" be case sensitive. Do I put "then" on the 1st line? do I put then on the
  23. 2nd line? do I preced then with a ";" (in sh? I've seen it both ways);
  24. do I put "" around "$TERM"? do I use != or !== or ~==?? is the ( ) test above
  25. case sensitive? should I upcase/lowercase term and sun before comparing them?
  26.  
  27. why is unix so complicated compared to vms dcl-- now that's a script language,eh?
  28. thanx for answering,
  29. frustrated at being forced to use unix instead of vms,
  30. sue@byron.u.washington.edu
  31.  AND ALSO THIS INSANE VI EDITOR!!!!
  32.  
  33.  ... my gawd --IT'S CASE SENSITIVE--WHAT JUNK!!
  34.