Date: Fri, 1 Sep 2006 13:53:18 -0400 From: Garance A Drosehn <gad@FreeBSD.org> To: Oliver Fromme <olli@lurza.secnetix.de>, freebsd-current@FreeBSD.org, jhb@FreeBSD.org Cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@des.no> Subject: Re: suggested addition to 'date' Message-ID: <p06230928c11e2298ca97@[128.113.24.47]> In-Reply-To: <200608281545.k7SFjn6l063922@lurza.secnetix.de> References: <200608281545.k7SFjn6l063922@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06230928c11e2298ca97>