From owner-cvs-all Tue May 7 16:14:21 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 8DFD737B404; Tue, 7 May 2002 16:14:09 -0700 (PDT) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g47NE7ob535038; Tue, 7 May 2002 19:14:07 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20020507214610.GA30780@FreeBSD.ORG> References: <200205071832.g47IWJO26790@freefall.freebsd.org> <20020507214610.GA30780@FreeBSD.ORG> Date: Tue, 7 May 2002 19:14:06 -0400 To: "J. Mallett" From: Garance A Drosihn Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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 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 ""'. I did check sed implementations on a number of platforms, and none of them seem to use -i or -I. I do like to see this option to do in-place editing. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message