GNU bug report logs - #36489
possible bug by sed?

Previous Next

Package: sed;

Reported by: Steven Abner <pheonix.sja <at> att.net>

Date: Wed, 3 Jul 2019 14:46:01 UTC

Severity: normal

Tags: moreinfo, 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: Steven Abner <pheonix.sja <at> att.net>
To: bug-sed <at> gnu.org
Subject: possible bug by sed?
Date: Wed, 03 Jul 2019 10:35:33 -0400
[Message part 1 (text/plain, inline)]
Hi,
Using:
grep -rlI ~/Development/PheonixOS -e 'as_sys_types.h' | xargs sed -i 
's <at> as_sys_types.h <at> as_types.h <at> g'
on ElementaryOS did its job except it truncated a few files' last line. 
In otherwords, file ends up one line
short, and had no replacement on that line.
 Only found problem because of had identical copies on my mac, and did 
same thing, except BSD variant:
grep -rlI ~/Development/Pheonix -e 'as_sys_types.h' | xargs sed -i "" 
's <at> as_sys_types.h <at> as_types.h <at> g'
Then I verify changes by using diff command. Several files on linux 
lost last line.
As stated in subject, 'possible', because it could belong to 'xargs'?
Thx and sorry to contact
Steve



[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 314 days ago.

Previous Next


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