GNU bug report logs - #36094
Possible sed bug

Previous Next

Package: sed;

Reported by: Roel Van de Paar <roel.vandepaar <at> gmail.com>

Date: Wed, 5 Jun 2019 02:16:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Roel Van de Paar <roel.vandepaar <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: Possible sed bug
Date: Wed, 5 Jun 2019 10:38:53 +1000
[Message part 1 (text/plain, inline)]
See attached 'test' file with some non-ASCII chars.

$ cat test
a�-�-

Then;

$ sed -i "s|.*|allgone|" test && cat test
allgone�-�-

Or (using fresh copy of 'test');

$ sed -i "s|.*|allgone|gi" test && cat test
allgone�allgone�allgone

Expected output in both cases would seem to be "allgone" on the line and
nothing else?

God Bless,
Roel
[Message part 2 (text/html, inline)]
[test (application/octet-stream, attachment)]

This bug report was last modified 6 years and 46 days ago.

Previous Next


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