From owner-freebsd-current Thu Dec 5 17: 2:51 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1727837B401; Thu, 5 Dec 2002 17:02:50 -0800 (PST) Received: from smtp01.iprimus.net.au (smtp01.iprimus.net.au [210.50.30.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C74D43EB2; Thu, 5 Dec 2002 17:02:48 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au ([203.134.172.85]) by smtp01.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Fri, 6 Dec 2002 12:02:32 +1100 Received: from dilbert.robbins.dropbear.id.au (jad3e6lvdst6myfb@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id gB612HWo097033; Fri, 6 Dec 2002 12:02:19 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id gB6121Jh097031; Fri, 6 Dec 2002 12:02:01 +1100 (EST) (envelope-from tim) Date: Fri, 6 Dec 2002 12:02:00 +1100 From: Tim Robbins To: FUJISHIMA Satsuki Cc: current@FreeBSD.org Subject: Re: SED regression Message-ID: <20021206120200.A96175@dilbert.robbins.dropbear.id.au> References: <867keoseqq.wl@gray.plala.or.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <867keoseqq.wl@gray.plala.or.jp>; from sf@FreeBSD.org on Thu, Dec 05, 2002 at 11:49:01PM +0900 X-OriginalArrivalTime: 06 Dec 2002 01:02:38.0966 (UTC) FILETIME=[2BF27160:01C29CC3] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Dec 05, 2002 at 11:49:01PM +0900, FUJISHIMA Satsuki wrote: > Does anyone see this? > both -CURRENT and -STABLE fail at the same place. > > note: GNU sed 3.02 from ports passed this test. > > /usr/src/tools/regression/usr.bin/sed$ make > Running test G > PASS: Test G detected no regression. (in /usr/src/tools/regression/usr.bin/sed) > Running test P > PASS: Test P detected no regression. (in /usr/src/tools/regression/usr.bin/sed) > Running test psl > PASS: Test psl detected no regression. (in /usr/src/tools/regression/usr.bin/sed) > Running test bcb > PASS: Test bcb detected no regression. (in /usr/src/tools/regression/usr.bin/sed) > Running test y > --- regress.y.out Fri Jun 28 01:07:51 2002 > +++ - Thu Dec 5 23:26:19 2002 > @@ -1 +1 @@ > -fOO > \ No newline at end of file > +fOO > FAIL: Test y failed: regression detected. See above. (in /usr/src/tools/regression/usr.bin/sed) > *** Error code 1 > > Stop in /usr/src/tools/regression/usr.bin/sed. Our current behaviour is correct according to the relevant standards, but it is not what a user might expect. The problem was that sed previously stored the last newline of a space (pattern/hold), but now it is implicit. This makes it easier to implement many of the commands that were wrong in earlier releases of FreeBSD and were hacked around (see process.c revision 1.4, for example). We do need to restore support for missing newlines at EOF, though, but it's not a very high priority. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message