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