home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4546 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  2.8 KB

  1. Xref: sparky comp.unix.shell:4546 comp.unix.questions:12952
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!ucbvax!ucdavis!othello.ucdavis.edu!cccbrian
  3. From: cccbrian@othello.ucdavis.edu (Brian C Hill)
  4. Newsgroups: comp.unix.shell,comp.unix.questions
  5. Subject: Re: Bourne Shell Programming Considered Harmful
  6. Message-ID: <18908@ucdavis.ucdavis.edu>
  7. Date: 5 Nov 92 07:49:16 GMT
  8. References: <1992Nov3.191253*Harald.Eikrem@delab.sintef.no>
  9. Sender: usenet@ucdavis.ucdavis.edu
  10. Followup-To: comp.unix.shell
  11. Lines: 42
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14. Harald.Eikrem@delab.sintef.no writes:
  15. : ! > The command syntax really sucks, man.
  16. : !
  17. : ! But it does _work_, in direct contrast to [t]csh.
  18. : Now this time, is advocating Bourne Shell part of your plan :>?
  19. : Well, I'd say it does NOT work very well, especially when having to deal
  20. : with that Bourne shell DEC has been providing their customers with over the
  21. : years in Ultrix.  Has it been updated at all since 4.2BSD --> Ultrix 1.1?
  22. : And for you Tom C., same thing goes for Convex Computer.
  23.  
  24.     I have to deal the [t]csh genre another blow. sh executes
  25. with a stack size of about 'x'. ksh (blows c-shell away in 95% of
  26. all categories) runs with about 5x. csh (so brain damaged, it can
  27. never hope to recover - thanks Tom) uses about 6x and tcsh often
  28. comes in with 12x!!!! Why? This is why:
  29.  
  30. tcsh does all of this  stuff that I maintain a shell simply shouldn't 
  31. do like watching for users. That is an application level task. The spell 
  32. checker is nice, but I don't usually spell 'ls' wrong. Of course, with
  33. a long command like 'cat' one is bound to make mistakes. tcsh is 
  34. a hack upon a hack. csh was brain damaged and tcsh had to be tweaked
  35. extra hard to make sure that didn't show it's dark and ugly ancestry
  36. of csh. Then all of the this wanna-be-conventional-builtin stuff
  37. was added wherever it was thought to fit best and the result was a
  38. monster! Even tcsh die-hard admit that it runs slow. sh is the most
  39. elegant well behaved of the pre-ksh shells, but it still suffers
  40. from contracting out of basic shell services. You have to call
  41. awk and sed for everything and in the older versions that must conrtract
  42. out to /bin/test and /bin/expr for that stuff. ksh88 just runs smooth
  43. as a whistle and is part of POSIX. I suppose tcsh might become part
  44. of another standard some day - NEGEX!
  45.  
  46.    +----------------------------------------------------------------------+
  47.    | Brian C. Hill                     INTERNET: hillb@cs.ucdavis.edu     |
  48.    | System Administrator/Programmer   BITNET:   bchill@ucdavis           |
  49.    +----------------------------------------------------------------------+
  50.    | Computer Science & Computing Services PHONE: (916) 752-8878 (or 6547)|
  51.    | University of California, Davis       FAX:   (916) 752-4767 (or 9154)|
  52.    +----------------------------------------------------------------------+
  53.