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

  1. Xref: sparky comp.unix.shell:3723 comp.unix.questions:10592
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!swrinde!sdd.hp.com!usc!news
  3. From: ajayshah@almaak.usc.edu (Ajay Shah)
  4. Newsgroups: comp.unix.shell,comp.unix.questions
  5. Subject: Re: Shell Scripts vs. C programs
  6. Keywords: shell script, C
  7. Message-ID: <la5rr9INNac3@almaak.usc.edu>
  8. Date: 1 Sep 92 04:19:53 GMT
  9. References: <1992Aug31.211738.1909@tjhsst.vak12ed.edu> <119@steiny.com>
  10. Sender: ajayshah@almaak.usc.edu (Ajay Shah)
  11. Organization: University of Southern California, Los Angeles, CA
  12. Lines: 26
  13. NNTP-Posting-Host: almaak.usc.edu
  14.  
  15. steiny@steiny.com (Don Steiny) writes:
  16.  
  17. >    BZZZ - shell scripts are non-portable, there is no error checking,
  18. >and they have many other problems.    For very short programs shell 
  19.  
  20. /bin/sh is highly portable, as are bash extensions (because bash
  21. compiles on anything).
  22.  
  23. The error checking by the script can be almost as good as you want it
  24. to be.  If what you mean is: the "compiler" does little checking, yes,
  25. that is the case.  Experience has shown that little interpreted
  26. languages like awk are actually more useful when you don't have the
  27. baggage of declaration etc.
  28.  
  29. 1% of the possible flags of /bin programs account for 99% of
  30. the usage, therefore even though all the flags of ls are not
  31. standardised, you are in great shape using a few of them.
  32.  
  33. And Yes, I think shell scripts are intensively used in one-use or in
  34. situations where you won't need the script a few weeks hence.  Most
  35. scripts _I_ write are written interactively on the commandline :-)
  36. (Okay, I admit to serious help from bash and command_oriented_history).
  37.  
  38.         -ans.
  39. -- 
  40. Ajay Shah, (213)749-8133, ajayshah@usc.edu
  41.