From owner-cvs-all Wed May 8 13:19: 4 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 A5FA037B96A for ; Wed, 8 May 2002 13:14:23 -0700 (PDT) Received: (qmail 13857 invoked by uid 1001); 8 May 2002 20:18:01 -0000 Date: Wed, 8 May 2002 20:18:01 +0000 From: "J. Mallett" To: "Brian F. Feldman" Cc: Dag-Erling Smorgrav , John Baldwin , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, arch@FreeBSD.org, Garance A Drosihn , David O'Brien , "J. Mallett" Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 Message-ID: <20020508201800.GB19530@FreeBSD.ORG> References: <200205081728.g48HSYf47716@green.bikeshed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205081728.g48HSYf47716@green.bikeshed.org> 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 Wed, May 08, 2002 at 01:28:34PM -0400, Brian F. Feldman wrote: > Dag-Erling Smorgrav wrote: > > John Baldwin writes: > > > I think green was implying that sed would have its own getopt instead > > > of changing the system getopt. > > > > Ugh. Nasty. Especially if the modified getopt() could be useful to > > other programs as well (do we have any programs with options that take > > optional arguments?) > > Okay, fine, assume we'd just do the same thing to the system's getopt() > instead of a special getopt(). So then...? Better to localise the dispicable behaviour to sed(1). Other programs provide their own egetopt(), for non-standard stuff. If sed(1) is supposed to be portable, it can't rely on such a change to the system getopt(3), and I'd be hesitant to say we should at all. But that's just a bikeshed opinion. Well, that and I had patches to getopt(3) when I proposed optional args to xargs(1) for GNU/compatability, and I was told outright by a few individuals "don't touch getopt(3), even if your change won't affect existing programs, it's non-portable as hell". Anyway. -- 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