home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3776 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.7 KB

  1. Xref: sparky comp.unix.shell:3776 comp.unix.questions:10655
  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: <1992Sep1.222041.1491@spuddy.uucp>
  8. Date: 1 Sep 92 22:20:41 GMT
  9. References: <1992Aug31.211738.1909@tjhsst.vak12ed.edu> <119@steiny.com>
  10. Organization: Spuddy's Public Usenet Domain
  11. Lines: 28
  12.  
  13. In article <119@steiny.com> steiny@steiny.com (Don Steiny) writes:
  14. >    BZZZ - shell scripts are non-portable, there is no error checking,
  15. >and they have many other problems.    For very short programs shell 
  16. >might be better, but in general C is better for many reasons.
  17.  
  18. Of course!  Thats why the 1000+ lines of ksh script I have written and is
  19. running on three different systems (SunOs4.1.1, Convergent S/80 Ctix, Altos
  20. 3068 SVR2.2) and used to run under Ultrix 4.1 was so hard to get working....
  21. NOT!
  22.  
  23. And it is so easy to modify, enhance, understand!
  24. And this program has been running now for over 1 year....
  25.  
  26. In fact ksh is now my primary programming "language" - I keep kicking myself
  27. when my occaisioanl C program has comment lines beginning with a # :-)
  28.  
  29. Yes, there *are* times where ksh is not suitable for everything, but a main
  30. ksh program with a couple of special C utilities solve 99% of my problems.
  31.  
  32. With something as powerful as ksh, all you need is the shell, and your programs
  33. will run virtually anywhere.
  34.  
  35. Sounds like some arguments I've heard for perl...:-)
  36. -- 
  37.                                Stephen Harris
  38.                sweh@spuddy.uucp    ...!uknet!axion!spuddy!sweh
  39.  
  40.  * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
  41.