Subject: missing major point in the man page for command n

From: Vincent Lefevre <[email-masked]>
Date: Wed, 24 Jul 2024 11:34:57 +0200

Hi,

The sed(1) man page misses a major point in the description of
command n: The current pattern space is output if automatic printing
has not been suppressed.

I've attached a patch against master.

-- 
Vincent Lefèvre <[email-masked]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
>From 59782a755c58a0d7edc0934f1ec821b12d003455 Mon Sep 17 00:00:00 2001
From: Vincent Lefevre <[email-masked]>
Date: Wed, 24 Jul 2024 11:26:19 +0200
Subject: [PATCH] sed(1): improve description of command n

The current pattern space is output if automatic printing
has not been suppressed.
---
 doc/sed.x | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/sed.x b/doc/sed.x
index c1b1fcf..63703a9 100644
--- a/doc/sed.x
+++ b/doc/sed.x
@@ -131,8 +131,12 @@ breaking it at
 .I width
 characters.  This is a GNU extension.
 .TP
-n N
-Read/append the next line of input into the pattern space.
+n
+Print the current pattern space if automatic printing has not been
+suppressed, and read the next line of input into the pattern space.
+.TP
+N
+Append the next line of input into the pattern space.
 .TP
 p
 Print the current pattern space.
-- 
2.45.2