Date: Sat, 4 Dec 2004 10:23:00 -0600 (CST) From: Sean Farley <sean-freebsd@farley.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/74672: sed does not handle ? and + correctly Message-ID: <200412041623.iB4GN0Ds030155@thor.farley.org> Resent-Message-ID: <200412041630.iB4GURCt054161@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412041623.iB4GN0Ds030155>