home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3824 < prev    next >
Encoding:
Text File  |  1992-09-04  |  1.9 KB  |  42 lines

  1. Xref: sparky comp.unix.shell:3824 comp.unix.questions:10738
  2. Path: sparky!uunet!mcsun!uknet!axion!spuddy!sweh
  3. From: sweh@spuddy.uucp (Stephen Harris)
  4. Newsgroups: comp.unix.shell,comp.unix.questions
  5. Subject: Re: Shell Scripts vs. C programs
  6. Keywords: shell script, C
  7. Message-ID: <1992Sep3.213336.5151@spuddy.uucp>
  8. Date: 3 Sep 92 21:33:36 GMT
  9. References: <119@steiny.com> <1992Sep1.222041.1491@spuddy.uucp> <123@steiny.com>
  10. Organization: Spuddy's Public Usenet Domain
  11. Lines: 29
  12.  
  13. In article <123@steiny.com> steiny@steiny.com (Don Steiny) writes:
  14. >    This may be a matter of scale, but 1000 lines is not a very large 
  15. >program.     Besides, there are still many systems that do not have ksh,
  16. >unfortunately, I have to use them all the time.   Even on Sun's, ksh is
  17. >a "local" program and is not always there.
  18.  
  19. You're right - 1000 lines of C code is not a lot.  1000 lines of shell script
  20. in one program is quite a bit.  (This was just the main message router program.
  21. The whole system comes close to 7000 lines).
  22. On one of the machines, once I had ksh compiled OK, it was easier to write
  23. ksh scripts than c programs (Altos 3068).  Heck!  On this machine the C
  24. compiler would barf on its own include files!
  25. #include <machine.h>
  26.  
  27. That one line program through up tonnes of cpp errors.  Blugh.
  28.  
  29. >a different kettle of fish than 20,000+ line program that run on dozens of
  30. >systems.     Ask Larry Wall, the author of perl and rn.   He wrote perl 
  31. >partially because of the portablity problems with the shell.
  32.  
  33. I would NEVER write 20,000+ line program in script.
  34. In fact, I would try hard and not write a 20,000 line program!
  35. 20 1,000 lines programs sound better :-)  And these 1,000 lines programs
  36. I *might* write in ksh.....
  37. -- 
  38.                                Stephen Harris
  39.                sweh@spuddy.uucp    ...!uknet!axion!spuddy!sweh
  40.  
  41.  * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
  42.