Re: suggested addition to 'date'

From: Julian Elischer <julian_at_elischer.org>
Date: Sat, 12 Aug 2006 12:43:27 -0700
Poul-Henning Kamp wrote:

>In message <20060812074400.GA9572_at_gothmog.pc>, Giorgos Keramidas writes:
>  
>
>>On 2006-08-11 22:53, Julian Elischer <julian_at_elischer.org> wrote:
>>    
>>
>
>  
>
>>This is getting too complex for my taste though.  I don't see cat(1)
>>doing signal trickery, so why should date(1) do these things?
>>
>>Perhaps it's not a good idea to 'bloat' date(1) so much...
>>    
>>
>
>I think I'll second that.  The idea is good enough to merit it's
>own program.
>
>Or maybe it belongs in the logger(1) program instead ?
>  
>

well it's not really bloating date that much and in the case of non -s 
usage
it adds a single integer compare.

The signal stuff can probably be handled easier as Giorgos said, by just 
ensuring that the stdou channel is
set to per-line flush mode.
 Then the signal stuff wouldn't be needed and the whoe thing goes back 
to 20 or so lines extra.

You might say that the "logger" program would be overly bloated by 
having to include the whole of 'date'.
( you certainly don't want to exec () it once fro every line.)
Received on Sat Aug 12 2006 - 17:43:31 UTC

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