From owner-freebsd-current@FreeBSD.ORG Wed Sep 6 20:37:04 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 79C5A16A4DA; Wed, 6 Sep 2006 20:37:04 +0000 (UTC) (envelope-from gad@FreeBSD.org) Received: from smtp6.server.rpi.edu (smtp6.server.rpi.edu [128.113.2.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id C028043D6E; Wed, 6 Sep 2006 20:36:57 +0000 (GMT) (envelope-from gad@FreeBSD.org) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp6.server.rpi.edu (8.13.1/8.13.1) with ESMTP id k86Kam16025329; Wed, 6 Sep 2006 16:36:50 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <44FDF36A.3010608@FreeBSD.org> 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> Date: Wed, 6 Sep 2006 16:36:47 -0400 To: Doug Barton , Julian Elischer From: Garance A Drosehn Content-Type: multipart/mixed; boundary="============_-1054547485==_============" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Cc: freebsd-current@FreeBSD.org, Peter Jeremy Subject: Attempt #3, adding a new command 'sfilter' 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: Wed, 06 Sep 2006 20:37:04 -0000 --============_-1054547485==_============ Content-Type: text/plain; charset="us-ascii" ; format="flowed" At 3:00 PM -0700 9/5/06, 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. For what it's worth, I've improved my previous update so that the value of time is cached, thus avoiding unnecessary calls to localtime() and strftime(). At the moment this still exists as an update to `cat', just so the diff-output is readable. But I'd certainly be willing to install the result as a separate new command if that would work better. If there is support for that, I would install it as an `sfilter' command. Simple Filter. If I do install it as a separate command, then I would be extremely tempted to also add in 'unix2dos' and 'dos2unix' capability. Yes, I know everyone is rolling their eyes at this point, but if you look at the actual code already in `cat', it would require very few bytes of additional code to support that. If I were to install these ideas as a separate new command, would that be "acceptable-enough" for a new utility in the base OS? -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA --============_-1054547485==_============ Content-Id: Content-Type: application/octet-stream; name="cat-date.diff" ; x-mac-type="00000000" ; x-mac-creator="00000000" Content-Disposition: attachment; filename="cat-date.diff" ; modification-date="Wed, 6 Sep 2006 16:34:17 -0400" Content-Transfer-Encoding: x-uuencode begin 644 cat-date.dif M/R!C870M9&%T92YC"DEN9&5X.B!C870N,0H]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]"E)#4R!F:6QE.B`O:&]M92]N8W9S+W-R8R]B:6XO8V%T+V-A="XQ+'8* M2!T:&4@=F%L=64@;V8**RY! M'0N"BM.;R!S M97!A2!H86YD;&4@;75L=&EB>71E(&-H87)A8W1E#H@8V%T+F,*/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/0I20U,@9FEL93H@+VAO;64O;F-V"X**PD@ M*B!4:&ES(&UE86YS('1H870@:68@=&AE(&9OPHM M"69P&ET*#$I M.PH@"2\J($Y/5%)%04-(140@*B\*('T*0$`@+3$Y."PV("LR,3PHK"0D)"7-E=%]D871E<&9X*"D[ M"BL)"0D)*'9O:60I9G!U=',H9&%T97!F>"P@"AV;VED*0HK>PHK"6EN="!R97-L96X["BL) M=&EM95]T(&YO=SL**PHK"6EF("AD871E<&9X(#T]($Y53$PI"BL)"61A=&5P M9G@@/2!M86QL;V,H1$%415!&6%]-05A,14XI.PHK"BL)+RH**PD@*B!!=F]I M9"!T:&4@8V%L;',@=&\@;&]C86QT:6UE(&%N9"!S=')F=&EM92!I9B!T:&4@ M8W5R"@Q+"`B1F]R M;6%T('-P96-I9FEE9"!B>2`M1"!R97-U;'1S(&EN('!R969I>"`^("5D(&)Y M=&5S+B(L"BL)"2`@("!$051%4$987TU!6$Q%3BD["BM]"BL*("-I9FYD968@ >3D]?541/35]355!03U)4"B`*('-T871I8R!I;G0* ` end --============_-1054547485==_============--