From owner-cvs-all Tue May 7 13:55:55 2002 Delivered-To: cvs-all@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id AF62837B405; Tue, 7 May 2002 13:55:41 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id 86988AE165; Tue, 7 May 2002 13:55:41 -0700 (PDT) Date: Tue, 7 May 2002 13:55:41 -0700 From: Alfred Perlstein To: John Baldwin Cc: "J. Mallett" , Garrett Rooney , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 Message-ID: <20020507205541.GL36741@elvis.mu.org> References: <20020507191959.GA26441@FreeBSD.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i 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 * John Baldwin [020507 12:34] wrote: > > On 07-May-2002 J. Mallett wrote: > > On Tue, May 07, 2002 at 03:06:37PM -0400, John Baldwin wrote: > >> > >> It still would have been a good idea to send out the actual patch for review > >> on a public list. Personally, I won't use sed -i if it insists on leaving > >> backup files around that I have to go the trouble to delete. I might as > >> well > >> just do sed 'foo' < foo > foo.bak. I only use -i when I'm not specifying a > >> backup extension. Those are the only times I use perl in fact, and thus I > >> will probably continue to use perl for such things. > > > > Various points taken. Tell me the preferred way to handle options which may > > or may not take arguments, and I'll give it my best shot. I'd assume it's > > to do something like > > You can look at the perl source to see how they do it. :) Just open and then unlink the source file then recreate it as the output file. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message