bin/74672: sed does not handle ? and + correctly

Sean Farley sean-freebsd at farley.org
Sat Dec 4 08:30:28 PST 2004


>Number:         74672
>Category:       bin
>Synopsis:       sed does not handle ? and + correctly
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 04 16:30:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Sean Farley
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD thor.farley.org 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Nov 29 13:48:28 CST 2004 root at thor.farley.org:/usr/obj/usr/src/sys/THOR i386

>Description:
The system sed does not handle ? and + correctly.

This works with GNU sed (gsed from ports) by replacing the first "localhost" in
a line but the system sed makes no changes:

sed -e 's/localhost\?/ASDF/' /etc/hosts|egrep -i 'localhost|ASDF'
sed -e 's/localhost\+/ASDF/' /etc/hosts|egrep -i 'localhost|ASDF'

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list