From owner-freebsd-bugs Tue Jun 18 1:20:13 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3B6E337B405 for ; Tue, 18 Jun 2002 01:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5I8K1V62410; Tue, 18 Jun 2002 01:20:01 -0700 (PDT) (envelope-from gnats) Received: from gatesrv.RZ.UniBw-Muenchen.de (gatesrv.RZ.UniBw-Muenchen.de [137.193.11.27]) by hub.freebsd.org (Postfix) with ESMTP id 68EE637B401 for ; Tue, 18 Jun 2002 01:14:24 -0700 (PDT) Received: from nemesis.informatik.unibw-muenchen.de (nemesis.Informatik.UniBw-Muenchen.de [137.193.60.30]) by gatesrv.RZ.UniBw-Muenchen.de (8.11.2/8.11.2) with ESMTP id g5I8BNY21780 for ; Tue, 18 Jun 2002 10:11:23 +0200 (MEST) Received: from localhost (localhost.informatik.unibw-muenchen.de [127.0.0.1]) by nemesis.informatik.unibw-muenchen.de (Postfix) with ESMTP id 1B3F45A548 for ; Tue, 18 Jun 2002 10:11:22 +0200 (CEST) Received: by nemesis.informatik.unibw-muenchen.de (Postfix, from userid 1001) id 451115A544; Tue, 18 Jun 2002 10:11:21 +0200 (CEST) Message-Id: <20020618081121.451115A544@nemesis.informatik.unibw-muenchen.de> Date: Tue, 18 Jun 2002 10:11:21 +0200 (CEST) From: Oliver Braun To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/39457: sed -i.bak -e '[...]' file fails if file.bak already exists Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39457 >Category: bin >Synopsis: sed -i.bak -e '[...]' file fails if file.bak already exists >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 18 01:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Oliver Braun >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD nemesis.informatik.unibw-muenchen.de 4.6-STABLE FreeBSD 4.6-STABLE #0: Mon Jun 17 11:36:37 CEST 2002 root@nemesis.informatik.unibw-muenchen.de:/usr/obj/usr/src/sys/NEMESIS_OB i386 >Description: sed -i.bak -e '[...]' file fails if file.bak already exists. Regards, Olli >How-To-Repeat: on -current do: touch test touch test.bak sed -i.bak -e 's|foo|bar|' test on -stable do: cd ${PORTSDIR}/textproc/sed_inplace make install touch test touch test.bak sed_inplace -i.bak -e 's|foo|bar|' test >Fix: if this is the intended behaviour then please close this PR else fix source code. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message