From owner-cvs-all Tue May 7 16:48:45 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 86AEF37B401; Tue, 7 May 2002 16:48:39 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 582D4535E; Wed, 8 May 2002 01:48:34 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "J. Mallett" Cc: Garrett Rooney , Garance A Drosihn , "J. Mallett" , John Baldwin , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 References: <20020507184519.GB28857@FreeBSD.ORG> <20020507191959.GA26441@FreeBSD.ORG> <20020507232301.GB45271@electricjellyfish.net> <20020507233024.GC20078@FreeBSD.ORG> From: Dag-Erling Smorgrav Date: 08 May 2002 01:48:32 +0200 In-Reply-To: <20020507233024.GC20078@FreeBSD.ORG> Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 "J. Mallett" writes: > I'd go so far as to say we're implementing a superset of Perl's Surely you mean "subset" > capabilities in sed(1), and as such, the "old code" provision > falls in. After all, if you re-implmeneted a whole utility, you > would want compatability. All we want is front-end compatability > with Perl. The options. We don't get that anyway. The Perl idiom would be 'perl -p -i -e foo'; sed(1) does not have a -p option (the -p option to Perl basically means "act like sed(1)"). Also, the most common use for Perl in ports is to patch files in ${WRKSRC}, where backups aren't needed. I vote for having -i take no argument, and optionally adding a -I option that does take one. IMHO, the fact that Perl's -i option may or may not take an argument is a pain in the butt: it means it can't be clustered. I don't know how many times I've typed 'perl -pie foo' and been surprised that it didn't work... DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message