home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9285 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!brunix!brunix!pew
  3. From: pew@cs.brown.edu (Peter E. Wagner)
  4. Subject: shell scripts - then: then/endif not found error > ANSWER
  5. Message-ID: <1992Jul22.151154.3604@cs.brown.edu>
  6. Sender: news@cs.brown.edu
  7. Organization: Brown University Department of Computer Science
  8. Date: Wed, 22 Jul 1992 15:11:54 GMT
  9. Lines: 30
  10.  
  11. Thank you all for your help with my shell script problem.  The problem
  12. turned out to be in my .cshrc, as so many of you suspected.
  13. Specifying
  14.  
  15. #!/bin/csh -f
  16.  
  17. demonstrated that the problem was in the .cshrc.  A little examination
  18. yielded the problem in my .cshrc file:  The last line of my .cshrc was
  19. endifEOF.  A simple newline at the end of the last endif statement
  20. cleared that up.
  21.  
  22. Finally, many of you felt strongly that the sh scripting language is
  23. much preferrable to csh.  I think I'll take your advice and switch.
  24.  
  25. Thanks again.
  26.  
  27.     >p
  28.  
  29. ----------------------------------------------------------------
  30. Peter E. Wagner          (212)460-5672        pwagner@ejv.com
  31. 52 E 13th St. Apt. 5E                         pew@BROWNCS.BITNET
  32. New York, NY 10003                            uunet!brunix!pew
  33. ----------------------------------------------------------------
  34.  
  35.  
  36.  
  37. ----------------------------------------------------------------
  38. Peter E. Wagner          (212)460-5672        pwagner@ejv.com
  39. 52 E 13th St. Apt. 5E                         pew@BROWNCS.BITNET
  40. New York, NY 10003                            uunet!brunix!pew
  41.