On Aug 1, 2007, at 23:51, Michael G Schwern wrote:
I have an "unlimited" scrollback history option on my Terminal and
somehow the
universe has not yet imploded.
That's no such thing, and even in an environment where the relative
overhead of having no *explicit* limits on scrollback is much much less
important than it would be for command lines (fork/exec overhead
already being the majority of the cost of many shell scripts as it is)
you still use other programs (like less or tail) rather than simply
doing "cat multi-megabyte-logfile" and then shift-page-up. Because that
scrollback buffer is the wrong tool for that.
Its the 21st century. Dynamically allocated memory ain't exactly
rocket
science. C programs that still think it is, now that's hateful.
Don't be silly, this has nothing to do with C.
It has to do with NOT gratuitously abusing virtual memory for something
that's better served by a stream mechanism.
The command *line* itself is the *wrong* tool.