From owner-freebsd-current@FreeBSD.ORG Fri Sep 1 20:08:13 2006 Return-Path: X-Original-To: freebsd-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 8C90C16A4DA; Fri, 1 Sep 2006 20:08:13 +0000 (UTC) (envelope-from prvs=julian=392b3a9d5@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6891143D5C; Fri, 1 Sep 2006 20:08:11 +0000 (GMT) (envelope-from prvs=julian=392b3a9d5@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 01 Sep 2006 13:08:11 -0700 Message-ID: <44F8932A.6090806@elischer.org> Date: Fri, 01 Sep 2006 13:08:10 -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: Garance A Drosehn References: <200608281545.k7SFjn6l063922@lurza.secnetix.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , freebsd-current@freebsd.org, Oliver Fromme 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: Fri, 01 Sep 2006 20:08:13 -0000 Garance A Drosehn wrote: > At 5:45 PM +0200 8/28/06, Oliver Fromme wrote: > >> John Baldwin wrote: >> > Oliver Fromme wrote: >> > > There's another possibility, which doesn't require a new >> > > option letter at all. You could add a new escape sequence >> > > to the format string, e.g. "%*". Whenever date(1) is >> > > called with a format string containing that sequence, it >> > > goes into filter mode and replaces the sequence with the >> > > current line. > > > Note that the main objection to this option (at least from my > point of view) is that date should not be going into filter > mode. Not ever. Date is a command to set or display dates. > It is not a command to filter files. 'cat' would be a more > appropriate place to add this option. well that's your opinion and it's as arbitrary as mine is.. I think Date's job is to output dates (and set them). To me it makes sense to include the categories of output called "Appending" and "Prepending".