From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 3 10:18:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 969BC16A41F for ; Sat, 3 Sep 2005 10:18:06 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1EEF43D45 for ; Sat, 3 Sep 2005 10:18:05 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail07.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j83AI1Uw012177 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 3 Sep 2005 20:18:03 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j83AI1SR082829; Sat, 3 Sep 2005 20:18:01 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j83AI1ID082828; Sat, 3 Sep 2005 20:18:01 +1000 (EST) (envelope-from pjeremy) Date: Sat, 3 Sep 2005 20:18:01 +1000 From: Peter Jeremy To: Rein Kadastik Message-ID: <20050903101800.GA77285@cirb503493.alcatel.com.au> References: <43196C96.6040504@uninet.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43196C96.6040504@uninet.ee> User-Agent: Mutt/1.4.2i Cc: freebsd-hackers@freebsd.org Subject: Re: sed not working X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2005 10:18:06 -0000 On Sat, 2005-Sep-03 12:27:50 +0300, Rein Kadastik wrote: >Lets take the following sed command (from the ncurses MKlib_gen.sh script): > >sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' ... >This works, but I have found a specific pattern, where it does not work: >int something -> int something >Does anybody have any idea, what would be the cause of the problem and >how to fix it. I can't reproduce it on 4.9 or 7. I presume you've double checked that your test input doesn't have any garbage characters in it (or a tab instead of a space). >I also have several other FreeBSD systems, where the sed behaves >correctly. I also copied the sed over to the broken system, but no luck. ... >I suspect, that it is some sort of a regex library issue as sed does not >contain its own regex engine. What happens if you copy the libc from the broken system to a working system? Is there anything unusual about the problematic system? -- Peter Jeremy