From owner-freebsd-standards@FreeBSD.ORG Wed Jun 4 08:55:36 2003 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73A3637B401; Wed, 4 Jun 2003 08:55:36 -0700 (PDT) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [193.201.200.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 673F343F3F; Wed, 4 Jun 2003 08:55:35 -0700 (PDT) (envelope-from fanf@chiark.greenend.org.uk) Received: by chiark.greenend.org.uk (Debian Exim 3.35 #1) with local id 19Nabu-0004Uj-00; Wed, 04 Jun 2003 16:55:34 +0100 Date: Wed, 4 Jun 2003 16:55:34 +0100 From: Tony Finch To: Juli Mallett Message-ID: <20030604155534.GQ18938@chiark.greenend.org.uk> References: <20030603144225.GH18938@chiark.greenend.org.uk> <20030603151925.GI18938@chiark.greenend.org.uk> <20030603211357.B70533@espresso.bsdmike.org> <20030604151553.GO18938@chiark.greenend.org.uk> <20030604104636.A88028@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030604104636.A88028@FreeBSD.org> User-Agent: Mutt/1.3.28i Sender: Tony Finch cc: freebsd-standards@freebsd.org cc: tjr@freebsd.org cc: Mike Barcroft Subject: Re: [PATCH] for review Re: Sed substitution bugs X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 15:55:36 -0000 On Wed, Jun 04, 2003 at 10:46:36AM -0500, Juli Mallett wrote: > > We seem to bounce back and forth on what exactly counts as passing > that test.. Tell ya what, run it against SysV or GNU sed, and patch > using the diffs. Solaris: $ echo -n foo | sed y/o/O/ sed: Missing newline at end of file standard input. fOO $ GNU: $ echo -n foo | sed y/o/O/ fOO$ GNU is clearly the right implementation, and it's what the regression test says sed should do. I think sed should be fixed. (I can't do it right now because I'm going climbing.) Tony. -- f.a.n.finch http://dotat.at/ CAPE WRATH TO RATTRAY HEAD INCLUDING ORKNEY: SOUTHEAST 3 OR 4 BETWEEN ORKNEY AND RATTRAY HEAD AT FIRST, OTHERWISE NORTHWEST BACKING SOUTHWEST 3 OR 4, THEN LATER BACKING SOUTH OR SOUTHEAST. RAIN OR SHOWERS. MODERATE WITH FOG PATCHES, BECOMING GOOD. SLIGHT OR MODERATE.