home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9259 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.4 KB  |  43 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
  5. Message-ID: <1992Jul21.220416.21207@cs.brown.edu>
  6. Followup-To: pwagner@ejv.com
  7. Sender: news@cs.brown.edu
  8. Organization: Brown University Department of Computer Science
  9. Date: Tue, 21 Jul 1992 22:04:16 GMT
  10. Lines: 31
  11.  
  12. If I run any shell script (and I mean *any*, even simple one liners)
  13. that runs csh (#!/bin/csh), I get the error:
  14.  
  15.     then: then/endif not found
  16.  
  17. I am forced to use #!/bin/sh and its associated syntax due to this
  18. problem.
  19.  
  20. None of the gurus here have any idea as to what is causing this.  I
  21. normally run tcsh, but this happens no matter what shell I run.  
  22. Has anyone encountered this before?  I appreciate any input.  Please
  23. reply to pwagner@ejv.com, as I am not able to review this newsgroup
  24. often.  I will post the answer.  Thanks.
  25.  
  26.     >p
  27.  
  28. ----------------------------------------------------------------
  29. Peter E. Wagner          (212)460-5672        pwagner@ejv.com
  30. 52 E 13th St. Apt. 5E                         pew@BROWNCS.BITNET
  31. New York, NY 10003                            uunet!brunix!pew
  32.  
  33.  
  34. ----------------------------------------------------------------
  35.  
  36.  
  37.  
  38.  
  39. ----------------------------------------------------------------
  40. Peter E. Wagner          (212)460-5672        pew@cs.brown.edu
  41. 52 E 13th St. Apt. 5E                         pew@BROWNCS.BITNET
  42. New York, NY 10003                            uunet!brunix!pew
  43.