GNU bug report logs - #28881
sed guide mistake

Previous Next

Package: sed;

Reported by: Nick Chambers <dtscode <at> gmail.com>

Date: Tue, 17 Oct 2017 21:20:02 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nick Chambers <dtscode <at> gmail.com>
Subject: bug#28881: closed (Re: bug#28881: sed guide mistake)
Date: Wed, 18 Oct 2017 00:54:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#28881: sed guide mistake

which was filed against the sed package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 28881 <at> debbugs.gnu.org.

-- 
28881: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28881
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Assaf Gordon <assafgordon <at> gmail.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: 28881-done <at> debbugs.gnu.org, Nick Chambers <dtscode <at> gmail.com>
Subject: Re: bug#28881: sed guide mistake
Date: Tue, 17 Oct 2017 18:53:16 -0600
On 2017-10-17 05:48 PM, Jim Meyering wrote:
> On Tue, Oct 17, 2017 at 3:50 PM, Assaf Gordon <assafgordon <at> gmail.com> wrote:
>> On 2017-10-17 01:52 PM, Nick Chambers wrote:
>>>
>>> sed -i 's/hello/world' file.txt
>>
>> Attached is a fix.
> 
> Clearly necessary and correct. Thank you both.

Thanks, pushed here:
 https://git.savannah.gnu.org/cgit/sed.git/commit/?id=9f99a4f51


[Message part 3 (message/rfc822, inline)]
From: Nick Chambers <dtscode <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: sed guide mistake
Date: Tue, 17 Oct 2017 14:52:06 -0500
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

However on my ubuntu machine I get the following:

nchambers <at> dev-server:~$ sed --version
sed (GNU sed) 4.4
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed <at> gnu.org>.
nchambers <at> dev-server:~$ cat file.txt
hello world
this is a message
good day!
nchambers <at> dev-server:~$ sed -i 's/hello/world' file.txt
sed: -e expression #1, char 13: unterminated `s' command
nchambers <at> dev-server:~$


it works fine if I do

sed -i 's/hello/world/' file.txt

Thanks all!



This bug report was last modified 7 years and 275 days ago.

Previous Next


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