[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bin/74672: sed does not handle ? and + correctly
- Subject: bin/74672: sed does not handle ? and + correctly
- From: sean-freebsd at farley.org (Sean Farley)
- Date: Sat Dec 4 08:30:30 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_(_dot_)_farley_(_dot_)_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:
Visit your host, monkey.org