NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/44560: libtre misbehaves on regular expressions beginning with *

>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)
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
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.

Build and install -current with libc regular expression code replaced by 
libtre, by adding the following line to /etc/mk.conf:


Then try:

    $ echo 'foo*bar' | sed -e 's/*/-/g'

Note that the expected output would have been:


Home | Main Index | Thread Index | Old Index