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

  1. Xref: sparky comp.unix.shell:3726 comp.unix.questions:10598
  2. Newsgroups: comp.unix.shell,comp.unix.questions
  3. Path: sparky!uunet!wupost!darwin.sura.net!uvaarpa!vdoe386!tjhsst!nurban
  4. From: nurban@tjhsst.vak12ed.edu (Nathan Urban)
  5. Subject: Re: Shell Scripts vs. C programs
  6. Message-ID: <1992Sep01.062906.8332@tjhsst.vak12ed.edu>
  7. Summary: is C so non-portable?
  8. Keywords: shell script, C
  9. Organization: Virginia's Public Education Network (Fairfax)
  10. References: <1992Aug31.211738.1909@tjhsst.vak12ed.edu> <119@steiny.com> <1992Sep1.044434.7193@news.acns.nwu.edu>
  11. Date: Tue, 01 Sep 92 06:29:06 GMT
  12. Lines: 29
  13.  
  14. In article <1992Sep1.044434.7193@news.acns.nwu.edu> navarra@casbah.acns.nwu.edu (John Navarra) writes:
  15.  
  16. >For one, most [ba|k|z]sh scripts will run in sh and vice versa. And, if you 
  17. >need to, you can always get shell X and compile it on your machine. This is
  18. >*usually* easier than rewriting C-code to accomodate your OS. 
  19.  
  20. ...
  21.  
  22. >    And translating your C code using compiler X to OS Y is any
  23. >easier? Perhaps you are thinking of Csh? Then, yeah, you suck. 
  24.  
  25. >-tms
  26. >-- 
  27. >You can get further with a kind word | You can get further with a kind word
  28. >and a gun than a kind word alone.    | and a phaser than a kind word and a gun.
  29. >          --al capone                |           -- John Navarra
  30. >=======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
  31.  
  32.  
  33. It seems to me that most tasks that you would write a shell script for
  34. could be implemented in very portable C without worrying too much about
  35. OS quirks if one so desired.
  36.  
  37.  
  38. -- 
  39. -------------------------------------------------------
  40. Nathan Urban                  nurban@tjhsst.vak12ed.edu
  41. Thomas Jefferson High School for Science and Technology
  42. -------------------------------------------------------
  43.