From owner-cvs-all Tue May 7 14:22:40 2002 Delivered-To: cvs-all@freebsd.org Received: from finntroll.newgold.net (durham-ar1-4-64-252-019.durham.dsl-verizon.net [4.64.252.19]) by hub.freebsd.org (Postfix) with SMTP id D4BA237B409 for ; Tue, 7 May 2002 14:22:28 -0700 (PDT) Received: (qmail 24383 invoked by uid 1001); 7 May 2002 21:26:17 -0000 Date: Tue, 7 May 2002 21:26:17 +0000 From: "J. Mallett" 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: <20020507212616.GA7024@FreeBSD.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 Organisation: The FreeBSD Project 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 03:33:53PM -0400, John Baldwin wrote: > > On 07-May-2002 J. Mallett wrote: > > 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. :) You're a cruel, cruel man. I like Wollman's suggestion of just allowing a nil string. I question POLA implications of doing it that way, but I'll give it a shot. > > As for the droppings, what I have in mind to do is just unlink the backup, if > > the extension was not given, and to find some good extension to use to reopen > > for stdin. > > I don't think -i should apply if you are working with stdin. I don't think it > does for perl. But basically I, for one, just won't have a use for sed -i until > it stops leaving droppings. That's all. Sorry, I don't know why I said stdin, I meant stdout. Look at the code, it's clear what I meant. Brain misfire. > But please, whatever you do, run your stuff through a public list next time. > People accuse *BSD of being closed enough as it is. That's fine. I just don't *use* the public lists myself, and so I'm not all that acquainted with them. -- jmallett@FreeBSD.org | C, MIPS, POSIX, UNIX, BSD, IRC Geek. http://www.FreeBSD.org | The Power to Serve "I've never tried to give my life meaning by demeaning you." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message