From owner-cvs-all Tue May 7 18:30:27 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by hub.freebsd.org (Postfix) with ESMTP id 79F7E37B412 for ; Tue, 7 May 2002 18:30:06 -0700 (PDT) Received: (qmail 1030 invoked from network); 8 May 2002 01:30:05 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 8 May 2002 01:30:05 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g481U4F31445; Tue, 7 May 2002 21:30:04 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 07 May 2002 21:30:02 -0400 (EDT) From: John Baldwin To: Garance A Drosihn Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, "J. Mallett" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 07-May-2002 Garance A Drosihn wrote: > At 9:46 PM +0000 5/7/02, J. Mallett wrote: >>On Tue, May 07, 2002 at 11:32:18AM -0700, J. Mallett wrote: >>> jmallett 2002/05/07 11:32:18 PDT >>> >>> Modified files: >>> usr.bin/sed main.c sed.1 >>> Log: >> > Add a -i option to sed(1) to do inplace editing, to give >> > us an alternative to Perl for such things. >> >>Patch to remove the "droppings" as jhb put it, if a nil >>extension is specified. >> >>I'll implement a -I option which takes no arguments on >>top of this, if it looks kosher. > > I am not quite sure we should debate this on the cvs-lists, > but I don't want to move it to -arch or -hackers just yet > either... > > If I think back to the standards definition of 'xargs', the > capital letter options *require* the extra parameter, and > the lowercase options do not. I will admit the lowercase > options also allow for a screwy "tacked-on optional string", > but I will ignore that kind of option as we do not want to > go in that direction. > > Thus, I would suggest that options be '-I ' or just > plain '-i', where -i is the same as '-I ""'. This would allow 'sed -ie' which perl currently can't handle as well. I actually think this suggestion might be the best but that's just MO. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message