From scott@zorch.sf-bay.org Mon Mar 29 00:34:02 1999
Return-Path: <scott@zorch.sf-bay.org>
Received: from zorch.sf-bay.org (zorch.sf-bay.org [192.150.103.17])
	by hub.freebsd.org (Postfix) with ESMTP id 4F02D14E47
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Mar 1999 00:33:53 -0800 (PST)
	(envelope-from scott@zorch.sf-bay.org)
Received: from zorch.sf-bay.org (uucp@localhost) by zorch.sf-bay.org (8.8.8/8.8.2) with UUCP id AAA24185 for FreeBSD-gnats-submit@freebsd.org; Mon, 29 Mar 1999 00:33:24 -0800 (PST)
Received: (from scott@localhost)
	by zork.sf-bay.org (8.8.8/8.8.8) id QAA06950;
	Mon, 29 Mar 1999 16:31:46 +0800 (CST)
	(envelope-from scott)
Message-Id: <199903290831.QAA06950@zork.sf-bay.org>
Date: Mon, 29 Mar 1999 16:31:46 +0800 (CST)
From: Scott Hazen Mueller <scott@zorch.sf-bay.org>
Reply-To: scott@zorch.sf-bay.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: submitting a documentation change for sed(1)
X-Send-Pr-Version: 3.2

>Number:         10850
>Category:       docs
>Synopsis:       submitting a documentation change for sed(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 29 00:40:00 PST 1999
>Closed-Date:    Mon Feb 14 19:01:12 PST 2000
>Last-Modified:  Mon Feb 14 19:02:52 PST 2000
>Originator:     Scott Hazen Mueller
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
>Environment:

>Description:

I found the following (from sed(1)) unclear:

     A command line with two addresses selects the inclusive range from the
     first pattern space that matches the first address through the next pat-
     tern space that matches the second.  (If the second address is a number
     less than or equal to the line number first selected, only that line is
     selected.)  Starting at the first line following the selected range, sed
     starts looking again for the first address.

>How-To-Repeat:
>Fix:

Suggested re-phrasing:

A command line with two addresses selects an inclusive range.  This range
starts with the first pattern space that matches the first address.  The end
of the range is the next following pattern space that matches the second
address.  If the second address is a number less than or equal to the line
number first selected, only that line is selected.  In the case when the
second address is a context address, sed does not re-match the second address
against the pattern space that matched the first address.  Starting at the
first line following the selected range, sed starts looking again for the
first address.


>Release-Note:
>Audit-Trail:

From: John and Jennifer Reynolds <jjreynold@home.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: scott@zorch.sf-bay.org
Subject: Re: docs/10850: submitting a documentation change for sed(1)
Date: Thu, 13 Jan 2000 23:06:31 -0700 (MST)

 I read through this PR and this section of the sed(1) man page was a bit
 confusing in its wording as Scott mentions. Scott's wording seems better.
 
 The PR mentions FreeBSD 2.2.8 but the "fix" applies to 3.4-STABLE.
 
 I've taken his "fix" and put it into patch for so that one of you committers
 can easily burn it into /usr/src/usr.bin/sed/sed.1 and we can close this
 PR.
 
 --- /usr/src/usr.bin/sed/sed.1  Fri Dec 31 10:10:58 1999
 +++ sed.1       Thu Jan 13 22:59:31 2000
 @@ -140,12 +140,16 @@
  A command line with one address selects all of the pattern spaces
  that match the address.
  .Pp
 -A command line with two addresses selects the inclusive range from
 -the first pattern space that matches the first address through the next
 -pattern space that matches the second.
 -(If the second address is a number less than or equal to the line number
 -first selected, only that line is selected.)
 -Starting at the first line following the selected range,
 +A command line with two addresses selects an inclusive range.  This range
 +starts with the first pattern space that matches the first address.  The end
 +of the range is the next following pattern space that matches the second
 +address.  If the second address is a number less than or equal to the line
 +number first selected, only that line is selected.  In the case when the
 +second address is a context address,
 +.Nm
 +does not re-match the second address
 +against the pattern space that matched the first address.  Starting at the
 +first line following the selected range,
  .Nm
  starts looking again for the first address.
  .Pp
 
 
 -Jr
 
 -- 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 John Reynolds         Chandler Capabilities Engineering, CDS, Intel Corporation
 jreynold@sedona.ch.intel.com  My opinions are mine, not Intel's. Running
 jjreynold@home.com          FreeBSD 3.4-STABLE. FreeBSD: The Power to Serve.
 http://members.home.com/jjreynold/  Come join us!!! @ http://www.FreeBSD.org/
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
State-Changed-From-To: open->closed 
State-Changed-By: unfurl 
State-Changed-When: Mon Feb 14 19:01:12 PST 2000 
State-Changed-Why:  
The wording in sed.1 was pretty confusing, I committed a re-wording submitted by Scott Hazen Mueller <scott@zorch.sf-bay.org>. 
>Unformatted:
