Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 2003 16:55:34 +0100
From:      Tony Finch <dot@dotat.at>
To:        Juli Mallett <jmallett@FreeBSD.org>
Cc:        Mike Barcroft <mike@FreeBSD.org>
Subject:   Re: [PATCH] for review Re: Sed substitution bugs
Message-ID:  <20030604155534.GQ18938@chiark.greenend.org.uk>
In-Reply-To: <20030604104636.A88028@FreeBSD.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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  <dot@dotat.at>  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.



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