From owner-cvs-all Wed May 8 12:54: 3 2002 Delivered-To: cvs-all@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 7456C37B422; Wed, 8 May 2002 12:53:17 -0700 (PDT) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020508195317.XNJC10136.rwcrmhc51.attbi.com@blossom.cjclark.org>; Wed, 8 May 2002 19:53:17 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g48JrG795038; Wed, 8 May 2002 12:53:16 -0700 (PDT) (envelope-from cjc) Date: Wed, 8 May 2002 12:53:16 -0700 From: "Crist J. Clark" To: Tony Finch Cc: Alfred Perlstein , John Baldwin , "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: <20020508125316.F94469@blossom.cjclark.org> References: <20020507191959.GA26441@FreeBSD.ORG> <20020507205541.GL36741@elvis.mu.org> <20020507221134.A26336@chiark.greenend.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020507221134.A26336@chiark.greenend.org.uk>; from dot@dotat.at on Tue, May 07, 2002 at 10:11:34PM +0100 X-URL: http://people.freebsd.org/~cjc/ 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 Tue, May 07, 2002 at 10:11:34PM +0100, Tony Finch wrote: > On Tue, May 07, 2002 at 01:55:41PM -0700, Alfred Perlstein wrote: > > > > Just open and then unlink the source file then recreate it as the > > output file. > > That's no good if there's a failure, e.g. disk full. Well, since everyone else seems to have an opinion as to the color of the sed(1) shed... I think sed(1) is the wrong tool for this. We already have a tool that does "inline" editing, ed(1), $ ed somefile.txt <