GNU bug report logs - #59656
An error on your web page (example 7.20)

Previous Next

Package: sed;

Reported by: "Tomas Kana " <kana <at> seznam.cz>

Date: Mon, 28 Nov 2022 10:55:01 UTC

Severity: normal

Full log


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

From: "Tomas Kana " <kana <at> seznam.cz>
To: <bug-sed <at> gnu.org>
Subject: An error on your web page (example 7.20) 
Date: Mon, 28 Nov 2022 10:54:54 +0100 (CET)
[Message part 1 (text/plain, inline)]
Dear GNU community,


I would like to notify you about an error in the first example


7.20: Squeezing blank lines.


The commented command



# now, squeeze all '\n', this can be also done by:
# s/^\(\n\)*/\1/<br>works fine if the hash tag is erased from the second line, <br>but the next line in the sed script <br>s/\n*/\
/<br>that you have left uncommented on your web page adds an extra blank <br>line after every line. This is not the desired behavior. <br>With best wishes <br>Tomas Kana <br>
[Message part 2 (text/html, inline)]

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

Previous Next


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