Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2002 21:26:17 +0000
From:      "J. Mallett" <jmallett@FreeBSD.ORG>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        "J. Mallett" <jmallett@FreeBSD.ORG>, Garrett Rooney <rooneg@electricjellyfish.net>, 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>
In-Reply-To: <XFMail.20020507153353.jhb@FreeBSD.org>
References:  <20020507191959.GA26441@FreeBSD.ORG> <XFMail.20020507153353.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020507212616.GA7024>