home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11449 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  3.4 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!sungy!news.Sweden.Sun.COM!swippy!seunet!sunic!isgate!krafla!einari
  2. From: einari@rhi.hi.is (Einar Indridason)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Normal MSDOS multitasking!
  5. Message-ID: <5844@krafla.rhi.hi.is>
  6. Date: 16 Dec 92 15:58:32 GMT
  7. References: <1ghb1vINNccb@ub.d.umn.edu> <9212142475@fcshome.UUCP> <dmurdoch.363.724430472@mast.queensu.ca> <1992Dec15.202449.28162@rd.hydro.on.ca> <dmurdoch.365.724454682@mast.queensu.ca>
  8. Sender: usenet@rhi.hi.is
  9. Lines: 72
  10. Nntp-Posting-Host: hengill.rhi.hi.is
  11.  
  12. In <dmurdoch.365.724454682@mast.queensu.ca> dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
  13.  
  14. >In article <1992Dec15.202449.28162@rd.hydro.on.ca> twriter@rd.hydro.on.ca (Timothy Writer) writes:
  15. >>    cc -E program.c | more
  16. >>
  17. >I don't deny that there are some cases where there's a difference.  But 
  18. >how often do you really have problems with complex macros?  If it's as 
  19. >often as once a week, I'd suggest that you're doing something wrong.
  20.  
  21. Ah...
  22. But what if we substitute the string "cc -E program.c | more" with 
  23. "general pipeline (as in Unix)"  ?
  24.  
  25. Wouldn't that make much more sense, if the pipeline wouldn't have to run
  26. the first program to completion, before it starts the second?
  27.  
  28.  
  29. >Under DOS, nobody is sharing the CPU with you.  Under DOS, the weird idea 
  30. >that you should pass a manual page through a text formatter every time you 
  31. >want to look at it never caught on; help systems keep their text in a format 
  32. >that's convenient to display.
  33.  
  34. Under Dos, the idea that a program could have a 'man-page' is (until
  35. recently) allmost unknown.
  36. Besides, help systems store the help files in a variety of ways, often
  37. incompatible.  Some of those help files needs to be formatted in some way,
  38. anyway.
  39.  
  40. >>zcat huge.tar.Z | tar tvf - | grep 'foo*.c'
  41. >>
  42.  
  43. >Under DOS, there are lots of programs available to search the text contained 
  44. >in archives without uncompressing them, and every archive program that I've 
  45. >ever seen will list the filenames without uncompressing the archive.  For 
  46. >example, I'd probably run
  47.  
  48. >  pkunzip -v huge foo*.c
  49.  
  50. >to do what you did above.  The idea that you have to uncompress 
  51. >anything at all just to see the filenames strikes me as a very bad design.
  52.  
  53. You can get 'zoo' and 'arc' under Unix.  You can also get unzipper for
  54. Unix.
  55.  
  56. What would you do, if you got a compressed-tar file from a Unix archiver,
  57. that would keep, say, the source code for your favourite editor?  (The
  58. newest version?)
  59. Would you wait until you could get it in .zip form?  (Then that version
  60. might be outdated.)
  61.  
  62.  
  63. You mention that 'having to uncompress anything at all just to see the
  64. filenames....' strikes you as a bad design?
  65. Well, it would be still worse under DOgS, where you would have to have the
  66. temp files (if you are extracting with a "pipeline") from a huge.tar.Z
  67. file.
  68. Under Unix, the amount that flows in a pipe is often limited to 5K or 10K
  69. in size.  That means that you can work with a compressed file, if you deal
  70. with it partwise, extracting what you need, and skipping the rest.
  71.  
  72.  
  73. I see it as a beauty of the Unix thinking:  You want something that the
  74. standard tools don't provide?  You could pipe some programs together to get
  75. the wanted result.  
  76.  
  77. (this is what I feel.  It is not meant as a flame, rather as an
  78. observation; you are free to have your opinions :-)  (but of
  79. course, mine are correct :-) :-) :)
  80.  
  81.  
  82. --
  83. einari@rhi.hi.is
  84.