From unknown Wed Jun 18 23:17:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#72270 <72270@debbugs.gnu.org> To: bug#72270 <72270@debbugs.gnu.org> Subject: Status: missing major point in the sed(1) man page for command n Reply-To: bug#72270 <72270@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:17:57 +0000 retitle 72270 missing major point in the sed(1) man page for command n reassign 72270 sed submitter 72270 Vincent Lefevre severity 72270 normal tag 72270 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 24 05:35:24 2024 Received: (at submit) by debbugs.gnu.org; 24 Jul 2024 09:35:24 +0000 Received: from localhost ([127.0.0.1]:33147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWYP6-000498-HV for submit@debbugs.gnu.org; Wed, 24 Jul 2024 05:35:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:51782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWYP4-000490-6u for submit@debbugs.gnu.org; Wed, 24 Jul 2024 05:35:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWYOx-0003RJ-7p for bug-sed@gnu.org; Wed, 24 Jul 2024 05:35:16 -0400 Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWYOv-00078m-Ad for bug-sed@gnu.org; Wed, 24 Jul 2024 05:35:15 -0400 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.98) (envelope-from ) id 1sWYOf-00000000XtC-25bW; Wed, 24 Jul 2024 11:34:57 +0200 Date: Wed, 24 Jul 2024 11:34:57 +0200 From: Vincent Lefevre To: bug-sed@gnu.org Subject: missing major point in the man page for command n Message-ID: <20240724093457.GC2858@cventin.lip.ens-lyon.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Lp4cFAiGzAKU/iI4" Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.13+77 (9dc98409) vl-169878 (2024-06-20) Received-SPF: pass client-ip=140.77.13.17; envelope-from=vincent@vinc17.net; helo=cventin.lip.ens-lyon.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --Lp4cFAiGzAKU/iI4 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) --Lp4cFAiGzAKU/iI4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-sed-1-improve-description-of-command-n.patch" >From 59782a755c58a0d7edc0934f1ec821b12d003455 Mon Sep 17 00:00:00 2001 From: Vincent Lefevre 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 --Lp4cFAiGzAKU/iI4-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 24 06:29:47 2024 Received: (at control) by debbugs.gnu.org; 24 Jul 2024 10:29:47 +0000 Received: from localhost ([127.0.0.1]:33179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWZFj-0005UW-5W for submit@debbugs.gnu.org; Wed, 24 Jul 2024 06:29:47 -0400 Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:40616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWZFg-0005UM-CV for control@debbugs.gnu.org; Wed, 24 Jul 2024 06:29:46 -0400 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.98) (envelope-from ) id 1sWZFZ-00000000bng-0coe; Wed, 24 Jul 2024 12:29:37 +0200 Date: Wed, 24 Jul 2024 12:29:37 +0200 From: Vincent Lefevre To: control@debbugs.gnu.org Subject: Re: missing major point in the man page for command n Message-ID: <20240724102937.GD2858@cventin.lip.ens-lyon.fr> References: <20240724093457.GC2858@cventin.lip.ens-lyon.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240724093457.GC2858@cventin.lip.ens-lyon.fr> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.13+77 (9dc98409) vl-169878 (2024-06-20) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) retitle 72270 missing major point in the sed(1) man page for command n tags 72270 patch