From owner-freebsd-bugs Sun Mar 21 18:43:39 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from altair.mayn.de (altair.mayn.de [194.95.209.137]) by hub.freebsd.org (Postfix) with ESMTP id 7955714ED8 for ; Sun, 21 Mar 1999 18:43:35 -0800 (PST) (envelope-from mkb@altair.mayn.de) Received: from altair (IDENT:mkb@localhost [127.0.0.1]) by altair.mayn.de (8.9.1a/8.9.1) with ESMTP id DAA14820; Mon, 22 Mar 1999 03:41:09 +0100 (CET) Message-Id: <199903220241.DAA14820@altair.mayn.de> X-Mailer: exmh version 2.0.2 2/24/98 To: scott@zorch.sf-bay.org Cc: freebsd-bugs@freebsd.org Subject: Re: bin/10720: bug in sed context address handling In-Reply-To: Your message of "Mon, 22 Mar 1999 10:06:08 +0800." <199903220206.KAA04391@zork.sf-bay.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Mar 1999 03:41:08 +0100 From: Matthias Buelow Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Scott Hazen Mueller wrote: >>Number: 10720 >>Synopsis: bug in sed context address handling > >According to sed(1) > > 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 "Next" is the keyword here. Sed is behaving correctly as documented (the Digital UNIX sed has the same "quirk", btw.) The first address matches the entire line, then sed reads in the next and starts looking for the second match. Since none is found, it selects all until the end of file. - mkb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message