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.
This commit is contained in:
Yaroslav Tykhiy 2007-04-02 07:50:10 +00:00
parent 0f1d4b4d64
commit d7cfea0e1a
2 changed files with 1 additions and 13 deletions

View File

@ -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 {

View File

@ -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$