From owner-freebsd-current@FreeBSD.ORG Fri Sep 1 17:53:38 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 224F316A5AD; Fri, 1 Sep 2006 17:53:38 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp7.server.rpi.edu (smtp7.server.rpi.edu [128.113.2.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33F7543D93; Fri, 1 Sep 2006 17:53:24 +0000 (GMT) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp7.server.rpi.edu (8.13.1/8.13.1) with ESMTP id k81HrJxE009470; Fri, 1 Sep 2006 13:53:21 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <200608281545.k7SFjn6l063922@lurza.secnetix.de> References: <200608281545.k7SFjn6l063922@lurza.secnetix.de> Date: Fri, 1 Sep 2006 13:53:18 -0400 To: Oliver Fromme , freebsd-current@FreeBSD.org, jhb@FreeBSD.org From: Garance A Drosehn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= 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 17:53:38 -0000 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. -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA