GNU bug report logs - #49092
Bug/Limitation of sed

Previous Next

Package: sed;

Reported by: Alice Golakiya <golakiyaalice <at> gmail.com>

Date: Fri, 18 Jun 2021 15:18:02 UTC

Severity: normal

To reply to this bug, email your comments to 49092 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-sed <at> gnu.org:
bug#49092; Package sed. (Fri, 18 Jun 2021 15:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alice Golakiya <golakiyaalice <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-sed <at> gnu.org. (Fri, 18 Jun 2021 15:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alice Golakiya <golakiyaalice <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: Bug/Limitation of sed
Date: Fri, 18 Jun 2021 11:41:33 +0530
[Message part 1 (text/plain, inline)]
Hi ,

└─$ sed --version
sed (GNU sed) 4.7

file hosts:
ip1 == 10.0.0.1
ip2 == 10.0.0.100
[Message part 2 (text/html, inline)]

Information forwarded to bug-sed <at> gnu.org:
bug#49092; Package sed. (Fri, 18 Jun 2021 17:08:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alice Golakiya <golakiyaalice <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: Re: Bug/Limitation of sed
Date: Fri, 18 Jun 2021 11:45:35 +0530
[Message part 1 (text/plain, inline)]
Hi ,

└─$ sed --version
sed (GNU sed) 4.7

file "hosts":
ip1 == 10.0.0.1
ip2 == 10.0.0.100

command executed:
sudo -i sed -i 's/10.0.0.1/10.0.0.200/g' hosts

Output file :
ip1 == 10.0.0.200
ip2 == 10.0.0.20000

The change in ip2 is not expected and an invalid.

On Fri, 18 Jun 2021 at 11:41, Alice Golakiya <golakiyaalice <at> gmail.com>
wrote:

> Hi ,
>
> └─$ sed --version
> sed (GNU sed) 4.7
>
> file hosts:
> ip1 == 10.0.0.1
> ip2 == 10.0.0.100
>
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.