Date: Tue, 18 Jun 2002 10:11:21 +0200 (CEST) From: Oliver Braun <obraun@informatik.unibw-muenchen.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/39457: sed -i.bak -e '[...]' file fails if file.bak already exists Message-ID: <20020618081121.451115A544@nemesis.informatik.unibw-muenchen.de>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020618081121.451115A544>
