From owner-cvs-all Wed May 8 3:35:17 2002 Delivered-To: cvs-all@freebsd.org Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5]) by hub.freebsd.org (Postfix) with ESMTP id 644D237B400; Wed, 8 May 2002 03:34:56 -0700 (PDT) Received: (from reg@localhost) by shale.csir.co.za (8.11.6/8.11.6) id g48AYVx54167; Wed, 8 May 2002 12:34:31 +0200 (SAT) (envelope-from reg) Date: Wed, 8 May 2002 12:34:31 +0200 From: Jeremy Lea To: "J. Mallett" Cc: "David O'Brien" , Garance A Drosihn , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 Message-ID: <20020508123431.A53316@shale.csir.co.za> Mail-Followup-To: Jeremy Lea , "J. Mallett" , David O'Brien , Garance A Drosihn , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org References: <20020507184519.GB28857@FreeBSD.ORG> <20020507191959.GA26441@FreeBSD.ORG> <20020507232301.GB45271@electricjellyfish.net> <20020507233024.GC20078@FreeBSD.ORG> <20020508005957.GA28683@FreeBSD.ORG> <20020507182750.A33043@dragon.nuxi.com> <20020508013651.GA28536@FreeBSD.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020508013651.GA28536@FreeBSD.ORG>; from jmallett@FreeBSD.org on Wed, May 08, 2002 at 01:36:53AM +0000 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 Hi, Wow, look at the bikeshed I started just with a little comment. Thanks for implementing this so quickly, and sorry for all of the flak you've taken... I was mostly just pointing out that someone was going to suddenly have to fix several hundred ports when someone else took out their axe and whipped perl out of -current. On Wed, May 08, 2002 at 01:36:53AM +0000, J. Mallett wrote: > But unless people will shut the hell up about allowing -i with no argument, > we cannot achieve that without adding another option one way or the other. > > My choices, in order: > 1) Make -i optionally take an argument, to work like Perl > 2) Leave it as is, require an argument, even if it's nil > 3) Add another flag, one way or the other. Either -I which takes > no argument and acts like '-i ""', or make -I take an > argument, and -i not. > 4) Back out -i support at all, and let someone come up with > a way of doing it that won't hurt the feelings of the > guidelines for utilities. My 2c is that -i should take no arguement, and use .orig as the backup extension, like patch. In ports (the major potential user) this is being used as a quick replacement for patch, so perl compatibility is not an issue. This makes it easier to run a script over a port after patching to tell what the real changes were. We don't need two options, and I'm pretty sure that people will struggle to provide a good reason for being able to change the backup extension. (To anyone who sees that as a challenge: Remember, this is about removing the need for perl in the base system, and any infrastructure needed to run bsd.port.mk counts as the base system. It's not about providing a replacement for perl. That would be stupid.). Unfortunately this little thread will probably delay merging this back into -STABLE, which will mean that it can't be implemented in ports, because we should wait for one release before using new flags... Thanks again, -Jeremy -- FreeBSD - Because the best things in life are free... http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message