Re: suggested addition to 'date'

From: Garance A Drosehn <gad_at_FreeBSD.org>
Date: Fri, 1 Sep 2006 17:08:02 -0400
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
Received on Fri Sep 01 2006 - 19:08:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:59 UTC