Subject: Re: bug#28881: sed guide mistake

From: Assaf Gordon <[email-masked]>
Date: Tue, 17 Oct 2017 16:50:55 -0600

Hello,

On 2017-10-17 01:52 PM, Nick Chambers wrote:
> Hello! In the GNU guide for SED:
> https://www.gnu.org/software/sed/manual/sed.html#Introduction, I see
> the following:
> 
> sed -i 's/hello/world' file.txt

Thank you for the bug report.

Attached is a fix.
I will soon push it if there are no further comments.

regards,
  - assaf

>From 9f99a4f51ed21908d089658cce5cbe9259812d87 Mon Sep 17 00:00:00 2001
From: Assaf Gordon <[email-masked]>
Date: Tue, 17 Oct 2017 16:47:25 -0600
Subject: [PATCH] doc: fix missing slash in example

Reported by Nick Chambers in https://bugs.gnu.org/28881 .

* doc/sed.texi (Invoking sed::overview): Add missing slash in
's/hello/world/' command.
---
 doc/sed.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/sed.texi b/doc/sed.texi
index cc47b66..0557051 100644
--- a/doc/sed.texi
+++ b/doc/sed.texi
@@ -154,7 +154,7 @@ other files. The following command modifies @file{file.txt} and
 does not produce any output:
 
 @example
-sed -i 's/hello/world' file.txt
+sed -i 's/hello/world/' file.txt
 @end example
 
 @cindex -n, example
-- 
2.7.4