Date: Mon, 22 Mar 1999 03:41:08 +0100 From: Matthias Buelow <mkb@altair.mayn.de> To: scott@zorch.sf-bay.org Cc: freebsd-bugs@freebsd.org Subject: Re: bin/10720: bug in sed context address handling Message-ID: <199903220241.DAA14820@altair.mayn.de> In-Reply-To: Your message of "Mon, 22 Mar 1999 10:06:08 %2B0800." <199903220206.KAA04391@zork.sf-bay.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Scott Hazen Mueller <scott@zorch.sf-bay.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903220241.DAA14820>