emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#28881: closed (sed guide mistake)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#28881: closed (sed guide mistake)
Date: Wed, 18 Oct 2017 00:54:02 +0000

Your message dated Tue, 17 Oct 2017 18:53:16 -0600
with message-id <address@hidden>
and subject line Re: bug#28881: sed guide mistake
has caused the debbugs.gnu.org bug report #28881,
regarding sed guide mistake
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
28881: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28881
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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:

address@hidden:~$ 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: <address@hidden>.
address@hidden:~$ cat file.txt
hello world
this is a message
good day!
address@hidden:~$ sed -i 's/hello/world' file.txt
sed: -e expression #1, char 13: unterminated `s' command
address@hidden:~$


it works fine if I do

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

Thanks all!



--- End Message ---
--- Begin Message --- Subject: Re: bug#28881: sed guide mistake Date: Tue, 17 Oct 2017 18:53:16 -0600 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
On 2017-10-17 05:48 PM, Jim Meyering wrote:
On Tue, Oct 17, 2017 at 3:50 PM, Assaf Gordon <address@hidden> 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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]