GNU bug report logs - #74577
bug-about-sed

Previous Next

Package: sed;

Reported by: "820648178" <820648178 <at> qq.com>

Date: Thu, 28 Nov 2024 07:32:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "820648178" <820648178 <at> qq.com>
To: 74577 <at> debbugs.gnu.org
Subject: bug#74577: bug-about-sed
Date: Thu, 28 Nov 2024 15:06:54 +0800
[Message part 1 (text/plain, inline)]
&nbsp; When using the command&nbsp;sed -i "$a\anon" /opt/passwd&nbsp;to add content to an empty file, the content addition fails. I found that the&nbsp;sed&nbsp;command requires the file to have at least one line, even if it's a blank line, in order to execute. I consider this a bug. Can it be fixed?
[Message part 2 (text/html, inline)]

This bug report was last modified 198 days ago.

Previous Next


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