suggested addition to 'date'
Garance A Drosehn
gad at FreeBSD.org
Fri Sep 1 14:08:06 PDT 2006
At 1:06 PM -0700 9/1/06, Julian Elischer wrote:
>Oliver Fromme wrote:
>
>>Julian Elischer wrote:
>>
>>> What is the effective maximum line length for a single fgetln?
>>
>>It's unlimited. fgetln() allocates sufficient amount of
>>memory dynamically, that's why I used it instead of fgets().
>>It avoids reinventing the wheel.
>>
>
>NOTHING is unlimitted.
>what happens with a 3GB sequence of characters with no newlines?
This is exactly the type of question that we already know is
answered in 'cat', because the 'cat' command is already acting
as a filter. It already has acceptable behavior with large files,
and with I/O errors, etc.
I think some kind of date-prefixing option would be a good idea
in the 'cat' command. I am not objecting to the option, I'm
just saying that the option seems more appropriate for the 'cat'
command.
--
Garance Alistair Drosehn = drosehn at rpi.edu
Senior Systems Programmer or gad at FreeBSD.org
Rensselaer Polytechnic Institute; Troy, NY; USA
More information about the freebsd-current
mailing list