From owner-freebsd-current Mon Jun 24 4:25: 2 2002 Delivered-To: freebsd-current@freebsd.org Received: from dilbert.robbins.dropbear.id.au (176.a.007.mel.iprimus.net.au [210.50.80.176]) by hub.freebsd.org (Postfix) with ESMTP id 4A8D137B412 for ; Mon, 24 Jun 2002 04:24:48 -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 g5OBOFP8023602; Mon, 24 Jun 2002 21:24:16 +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 g5OBN057023601; Mon, 24 Jun 2002 21:23:00 +1000 (EST) Date: Mon, 24 Jun 2002 21:22:58 +1000 From: Tim Robbins To: Motoyuki Konno Cc: current@FreeBSD.ORG Subject: Re: sed broken? Message-ID: <20020624212258.A18850@dilbert.robbins.dropbear.id.au> References: <200206241009.g5OA9jl06906@sakura.mk.bsdclub.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: <200206241009.g5OA9jl06906@sakura.mk.bsdclub.org>; from motoyuki@bsdclub.org on Mon, Jun 24, 2002 at 07:09:45PM +0900 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 Mon, Jun 24, 2002 at 07:09:45PM +0900, Motoyuki Konno wrote: > Hi, > > I found that ports/devel/libtool and ports/devel/gmake are broken > on today's FreeBSD-current. I attached the error log to this mail. > It seems that these problems caused by the recent changes (on Jul 21) > to /usr/bin/sed. > > I tried to build ports/devel/libtool using old /usr/binsed > (before Jul 21), everything goes well. Thanks for reporting this. I found an off-by-one error I introduced by removing the trailing newline from the pattern space in the `y' (transliterate) command. The last character of the pattern space was never modified, because the code wrongly assumed a newline was there. Here's an example of the broken behaviour: $ echo oooo | sed 'y/o/O/' OOOo Good behaviour w/ fixed sed: $ echo 'oooo' | sed 'y/o/O/' OOOO After applying the patch I'm about to commit, libtool 1.4d compiles fine. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message