From 03cf2678d28b868b3e66659a634c7932527eef53 Mon Sep 17 00:00:00 2001 From: yar Date: Mon, 2 Apr 2007 07:50:10 +0000 Subject: [PATCH] Today SUN and GNU seds fully agree on test 5.3 and behave in a more reasonable way than BSD sed does: they properly close the range even if we branched over its end. No doubt, the range `1,5' should not match lines from 9 through 14. --- tools/regression/usr.bin/sed/multitest.t | 2 +- .../usr.bin/sed/regress.multitest.out/54_5.3 | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/tools/regression/usr.bin/sed/multitest.t b/tools/regression/usr.bin/sed/multitest.t index 594afaf1a09b..9c0881f92ac5 100644 --- a/tools/regression/usr.bin/sed/multitest.t +++ b/tools/regression/usr.bin/sed/multitest.t @@ -280,7 +280,7 @@ b :ok s/^/tested /p ' lines1 lines2 -# SunOS and GNU sed behave differently here. Clarification needed. +# SunOS and GNU sed behave as follows: lines 9-$ aren't printed at all mark '5.3' ; $SED -n -e ' 5,8b inside 1,5 { diff --git a/tools/regression/usr.bin/sed/regress.multitest.out/54_5.3 b/tools/regression/usr.bin/sed/regress.multitest.out/54_5.3 index 85b0b77d2726..e1ddb547a688 100644 --- a/tools/regression/usr.bin/sed/regress.multitest.out/54_5.3 +++ b/tools/regression/usr.bin/sed/regress.multitest.out/54_5.3 @@ -10,15 +10,3 @@ l1_5$ l1_6$ l1_7$ l1_8$ -^l1_9 -^l1_9$ -^l1_10 -^l1_10$ -^l1_11 -^l1_11$ -^l1_12 -^l1_12$ -^l1_13 -^l1_13$ -^l1_14 -^l1_14$