Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2002 12:02:00 +1100
From:      Tim Robbins <tjr@FreeBSD.org>
To:        FUJISHIMA Satsuki <sf@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: SED regression
Message-ID:  <20021206120200.A96175@dilbert.robbins.dropbear.id.au>
In-Reply-To: <867keoseqq.wl@gray.plala.or.jp>; from sf@FreeBSD.org on Thu, Dec 05, 2002 at 11:49:01PM %2B0900
References:  <867keoseqq.wl@gray.plala.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021206120200.A96175>