From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 4 16:30:28 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 286C516A4CE for ; Sat, 4 Dec 2004 16:30:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E99FE43D68 for ; Sat, 4 Dec 2004 16:30:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB4GURY8054164 for ; Sat, 4 Dec 2004 16:30:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB4GURCt054161; Sat, 4 Dec 2004 16:30:27 GMT (envelope-from gnats) Resent-Date: Sat, 4 Dec 2004 16:30:27 GMT Resent-Message-Id: <200412041630.iB4GURCt054161@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sean Farley Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6B1516A4CE for ; Sat, 4 Dec 2004 16:22:55 +0000 (GMT) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F80843D68 for ; Sat, 4 Dec 2004 16:22:55 +0000 (GMT) (envelope-from sean@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id iB4GMrUY099843 for ; Sat, 4 Dec 2004 10:22:53 -0600 (CST) (envelope-from sean@gw.farley.org) Received: from thor.farley.org (localhost [127.0.0.1]) by thor.farley.org (8.13.1/8.13.1) with ESMTP id iB4GN0C4030156 for ; Sat, 4 Dec 2004 10:23:00 -0600 (CST) (envelope-from sean@thor.farley.org) Received: (from sean@localhost) by thor.farley.org (8.13.1/8.13.1/Submit) id iB4GN0Ds030155; Sat, 4 Dec 2004 10:23:00 -0600 (CST) (envelope-from sean) Message-Id: <200412041623.iB4GN0Ds030155@thor.farley.org> Date: Sat, 4 Dec 2004 10:23:00 -0600 (CST) From: Sean Farley To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/74672: sed does not handle ? and + correctly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean Farley List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 16:30:28 -0000 >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: