Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2002 23:00:26 +0200 (CEST)
From:      Oliver Braun <obraun@informatik.unibw-muenchen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/39599: sed -i -e '[...]' file saves backup file with extension -e
Message-ID:  <20020620210026.DBB72263@unsane.de>

next in thread | raw e-mail | index | archive | help

>Number:         39599
>Category:       bin
>Synopsis:       sed -i -e '[...]' file saves backup file with extension -e
>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:   Thu Jun 20 14:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oliver Braun
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD galore.unsane.de 4.6-STABLE FreeBSD 4.6-STABLE #0: Sun Jun 16 12:43:32 CEST 2002 root@galore.unsane.de:/usr/obj/usr/src/sys/GALORE_OB i386


>Description:

If sed(1) is called with -i flag without an extension the following characters
will be used as extension. man sed says: If a zero-length extension is given,
no backup will be saved.

Regards,
         Olli

>How-To-Repeat:

use sed on -current or sed_inplace on -stable.

touch test
sed -i -e 's/foo/bar/' test
ls

>Fix:

N/A
>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?20020620210026.DBB72263>