Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2002 18:10:08 -0800 (PST)
From:      <ashp@FreeBSD.org>
To:        mjanosi@uakron.edu, ashp@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: misc/26153: sed G does not double space
Message-ID:  <200202090210.g192A8020136@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: sed G does not double space

State-Changed-From-To: open->feedback
State-Changed-By: ashp
State-Changed-When: Fri Feb 8 18:09:47 PST 2002
State-Changed-Why: 
Can you try the following patch (stolen from NetBSD) and see if it helps
you at all?  Seems to work here.

--- process.c.orig      Fri Feb  8 20:56:37 2002
+++ process.c   Fri Feb  8 21:06:06 2002
@@ -149,6 +149,8 @@
                                cspace(&PS, hs, hsl, REPLACE);
                                break;
                        case 'G':
+                               if (hs == NULL)
+                                   cspace(&HS, "\n", 1, REPLACE);
                                cspace(&PS, hs, hsl, 0);
                                break;
                        case 'h':


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26153

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?200202090210.g192A8020136>