From owner-freebsd-current Fri Jun 21 19:11: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from dilbert.robbins.dropbear.id.au (179.d.001.mel.iprimus.net.au [203.134.132.179]) by hub.freebsd.org (Postfix) with ESMTP id 998DC37B435 for ; Fri, 21 Jun 2002 19:10:44 -0700 (PDT) Received: from dilbert.robbins.dropbear.id.au (tim@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3) with ESMTP id g5M2AIY2013244 for ; Sat, 22 Jun 2002 12:10:21 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.3/8.12.3/Submit) id g5M292Td013238 for current@FreeBSD.ORG; Sat, 22 Jun 2002 12:09:02 +1000 (EST) Date: Sat, 22 Jun 2002 12:08:48 +1000 From: Tim Robbins To: current@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/sed main.c process.c Message-ID: <20020622120848.A13220@dilbert.robbins.dropbear.id.au> References: <200206220142.g5M1gQR07165@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200206220142.g5M1gQR07165@freefall.freebsd.org>; from tjr@FreeBSD.org on Fri, Jun 21, 2002 at 06:42:26PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 21, 2002 at 06:42:26PM -0700, Tim J. Robbins wrote: > tjr 2002/06/21 18:42:26 PDT > > Modified files: > usr.bin/sed main.c process.c > Log: > Don't store newlines at the end of each line in the hold/pattern spaces, > instead add the newline when the pattern space is printed. Make the `G' and > `H' commands add a newline to the space before the data, remove bogus > addition of newline from `x' command. > > PR: 29790, 38195 > > Revision Changes Path > 1.25 +2 -0 src/usr.bin/sed/main.c > 1.21 +10 -11 src/usr.bin/sed/process.c Please let me know if this breaks any (correct) existing scripts, especially the fancy ones used by some of the GNU build tools. The behaviour of everything but the G, H and x commands should be no different than they were before the change. The G, H, x commands were implemented incorrectly before this change, the behaviour now seems to be consistent with Solaris, V7, POSIX and GNU. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message