Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2002 23:34:57 +0000
From:      "J. Mallett" <jmallett@FreeBSD.ORG>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/sed main.c sed.1
Message-ID:  <20020507233456.GD20078@FreeBSD.ORG>
In-Reply-To: <200205072326.g47NQrnS079650@khavrinen.lcs.mit.edu>
References:  <200205071832.g47IWJO26790@freefall.freebsd.org> <20020507214610.GA30780@FreeBSD.ORG> <20020507155554.B31179@dragon.nuxi.com> <200205072259.g47MxECF079349@khavrinen.lcs.mit.edu> <20020507160625.A31482@dragon.nuxi.com> <200205072326.g47NQrnS079650@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 07, 2002 at 07:26:53PM -0400, Garrett Wollman wrote:
> <<On Tue, 7 May 2002 16:06:25 -0700, "David O'Brien" <obrien@FreeBSD.org> said:
> 
> >> sed(1) is defined to obey the Utility Syntax Guidelines.
> 
> > Point being?
> 
> Optional arguments are not permitted.  Options either take options or
> they don't.

We are providing forward-backwards compatability with options that
an older utility has standardised in the minds of people in the
community.

A standard won't use sed(1), a user will.  A user will want an
option provided for Perl compatability to work as if it is there
for Perl compatability.  The guidelines don't get astonished when
things are different, at most its feelings are hurt.

If you like, I could #ifndef STRICT_UTILITY_SYNTAX behaviour as
is being proposed.

Someone could argue that '-i ""' is a fair compromise.  I'm a little
tempted to argue that point, but I also know I've *never* used Perl
to inplace edit anything that wasn't in CVS, and so I never found a
need to actually specify an extension.
-- 
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?20020507233456.GD20078>