From owner-freebsd-current@FreeBSD.ORG Tue Sep 5 22:12:53 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 7ECB616A4DE; Tue, 5 Sep 2006 22:12:53 +0000 (UTC) (envelope-from prvs=julian=396dbb6ae@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31C9643D45; Tue, 5 Sep 2006 22:12:53 +0000 (GMT) (envelope-from prvs=julian=396dbb6ae@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 05 Sep 2006 15:12:53 -0700 Message-ID: <44FDF664.9070103@elischer.org> Date: Tue, 05 Sep 2006 15:12:52 -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: Doug Barton References: <200608281545.k7SFjn6l063922@lurza.secnetix.de> <200609020956.54008.Lucas.James@ldjcs.com.au> <20060902031247.GE749@turion.vk2pj.dyndns.org> <20060904192006.GA3292@turion.vk2pj.dyndns.org> <44FD994C.70104@errno.com> <44FDEE7C.9060104@FreeBSD.org> <44FDF245.9000302@elischer.org> <44FDF36A.3010608@FreeBSD.org> In-Reply-To: <44FDF36A.3010608@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, Garance A Drosehn , Peter Jeremy Subject: Re: Adding a '-D date' option to `cat' 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: Tue, 05 Sep 2006 22:12:53 -0000 Doug Barton wrote: >Julian Elischer wrote: > > > >>then there will be a bikeshed about adding a new tool >> >> > >... which can safely be ignored, even if it occurs, because creating new >and potentially useful tools always creates less drama then mucking about >with old (or really old) ones. I haven't heard anyone say, "No such >functionality should exist in FreeBSD," but I have heard several people >say "Don't bastardize the Unix model." I even like Sam's proposed name. > > > >>Date could have had this feature added in 20 lines of C. >>you'd rather create a whole new beaurocracy. >> >> > >What would be really useful here is if the people who want this could >focus on the end result (having the tool you need to do the job) rather >than the methodology of achieving that result. The door is open, walk >through it. > > > The tool I want is date, that can run itself multiple times according to how many lines there are in an input file. Note: 1/ my suggstion ignored the input file unless asked not to, so there is no danger of accidentally going into that mode. 2/ date doesn't use it's stdin for anything. so it doesn't break anything. 3/ it doesn't add any noticeable overhead to date. The 20 or so lines of C don't make it overflow a block boundary, and it does one or two extra instructions to select a slightly different codepath. I'm guessing Dennis and Ken would have done it if they had thought of it, and you would have been defending it if someone wanted to remove it. The "dog-in-the-manger" attitude of some people here is really quite amazing. I prefer 'date' to 'cat' as cat(1) is supposed to be uber-simple.. and fast.. I'm amazed to hear there is a line annotating function in it already.. I also suggested tee.. and someone suggested "that would make the streams different". well DUH! if you don't want timestamps on the saved copy of the output, then don't specify the option! I'm surprised you guys have cars with electric starters! >Doug > > >