NetBSD Problem Report #44560
From www@NetBSD.org Sun Feb 13 09:11:03 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 2D70C63B8E6
for <gnats-bugs@gnats.NetBSD.org>; Sun, 13 Feb 2011 09:11:03 +0000 (UTC)
Message-Id: <20110213091102.20D8B63B8BA@www.NetBSD.org>
Date: Sun, 13 Feb 2011 09:11:02 +0000 (UTC)
From: pouya@san-serriffe.org
Reply-To: pouya@san-serriffe.org
To: gnats-bugs@NetBSD.org
Subject: libtre misbehaves on regular expressions beginning with *
X-Send-Pr-Version: www-1.0
>Number: 44560
>Category: lib
>Synopsis: libtre misbehaves on regular expressions beginning with *
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 13 09:15:00 +0000 2011
>Originator: Pouya D. Tafti
>Release: 5.99.45 (2011-02-09)
>Organization:
>Environment:
NetBSD laptop 5.99.45 NetBSD 5.99.45 (TP_X201_FR_CH) #0: Wed Feb 9 13:34:09 CET 2011 pouya@laptop:/usr/objdir/sys/arch/amd64/compile/TP_X201_FR_CH amd64
>Description:
Regular expressions beginning with an asterisk (*) are processed incorrectly by programs depending on libc regexp handling when libc is compiled to use the TRE library for regular expressions.
>How-To-Repeat:
Build and install -current with libc regular expression code replaced by libtre, by adding the following line to /etc/mk.conf:
USE_LIBTRE=yes
Then try:
$ echo 'foo*bar' | sed -e 's/*/-/g'
-f-o-o-*-b-a-r-
Note that the expected output would have been:
foo-bar
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.