home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / unix / grep1_5.zoo / bugs.dos < prev    next >
Encoding:
Text File  |  1990-09-07  |  1.4 KB  |  26 lines

  1. KNOWN BUGS AND ARTIFICIAL RESTRICTIONS INTRODUCED IN THE MSDOS VERSION
  2. ----------------------------------------------------------------------
  3.  
  4. (What are `artificial restrictions' except traps that prevent the
  5. execution of a program's inherent bugs?)
  6.  
  7. --  The input buffer is restricted to about 32K in length.  This restriction
  8.     covers up the limitations of 16-bit signed arithmetic.  (That is, it
  9.     prevents the program from committing arithmetic errors by simply
  10.     aborting the program when there is a chance of an error occurring.)
  11.     I am not pleased by this solution.
  12.  
  13.     Much more strenuous modification of the program is hard to justify,
  14.     though, because anyone whose MSDOS text files have lines of thousands
  15.     of bytes probably has tentacles and bug eyes, anyway, and grep is
  16.     primarily aimed at what we call `text'.  Thus I have made no grand
  17.     effort to introduce long arithmetic, or even unsigned int arithmetic.
  18.     I don't want to have to do tons of work to upgrade the version numbers,
  19.     you see.
  20.  
  21. --  The byte counting scheme requires twice the normal buffering space
  22.     and slows down the program considerably.  It is truly a kludge,
  23.     designed to get things working while tampering with the `works'
  24.     of e?grep as little as possible.  Fortunately, neither the space
  25.     nor the speed is sacrificed if the `-b' option is not specified.
  26.