From owner-freebsd-current@FreeBSD.ORG Sat Aug 12 19:43:31 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E12016A4DA for ; Sat, 12 Aug 2006 19:43:31 +0000 (UTC) (envelope-from prvs=julian=372565577@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id F13FF43D49 for ; Sat, 12 Aug 2006 19:43:28 +0000 (GMT) (envelope-from prvs=julian=372565577@elischer.org) Received: from unknown (HELO [192.168.2.3]) ([10.251.60.23]) by a50.ironport.com with ESMTP; 12 Aug 2006 12:43:28 -0700 Message-ID: <44DE2F5F.2010207@elischer.org> Date: Sat, 12 Aug 2006 12:43:27 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Poul-Henning Kamp References: <94452.1155369039@critter.freebsd.dk> In-Reply-To: <94452.1155369039@critter.freebsd.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Giorgos Keramidas , current@freebsd.org Subject: Re: suggested addition to 'date' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2006 19:43:31 -0000 Poul-Henning Kamp wrote: >In message <20060812074400.GA9572@gothmog.pc>, Giorgos Keramidas writes: > > >>On 2006-08-11 22:53, Julian Elischer 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.)