From owner-freebsd-questions Tue Apr 23 6: 5:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id CD2B837B4B4 for ; Tue, 23 Apr 2002 06:05:22 -0700 (PDT) Received: from hades.hell.gr (patr530-a037.otenet.gr [212.205.215.37]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g3ND5Blv001589; Tue, 23 Apr 2002 16:05:16 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g3ND528i009921; Tue, 23 Apr 2002 16:05:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g3ND52nc009920; Tue, 23 Apr 2002 16:05:02 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 23 Apr 2002 16:05:02 +0300 From: Giorgos Keramidas To: Aaron Luz Cc: freebsd-questions@FreeBSD.ORG, "Matthew R. Dietrich" Subject: Re: sed G? Message-ID: <20020423130501.GD8750@hades.hell.gr> References: <20020421154846.A29729@imsa.edu> <20020423074017.A2763@thud.rochester.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020423074017.A2763@thud.rochester.rr.com> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-04-23 07:40, Aaron Luz wrote: > On Sun, Apr 21, 2002 at 03:48:46PM -0500, Matthew R. Dietrich wrote: > > Does anyone understand why "sed G" doesn't doublespace a provided input? It > > does under other systems I'm aquanted with. Does BSD sed not set the initial > > hold space to a empty line? I'm running a pretty recent stable... > > It seems to work for me. It was recently fixed by jmallett, in src/usr.bin/sed/process.c revision 1.14: revision 1.14 date: 2002/04/05 05:40:20; author: jmallett; state: Exp; lines: +2 -0 Fix sed(1) behaviour for 'G' when given null holdspace by making sure it contains a \n. PR: misc/26153 Submitted by: ashp Reviewed by: mike Obtained from: NetBSD MFC after: 2 days Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message