Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2002 12:08:48 +1000
From:      Tim Robbins <tjr@FreeBSD.ORG>
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>
In-Reply-To: <200206220142.g5M1gQR07165@freefall.freebsd.org>; from tjr@FreeBSD.org on Fri, Jun 21, 2002 at 06:42:26PM -0700
References:  <200206220142.g5M1gQR07165@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020622120848.A13220>