GNU bug report logs -
#21511
sed not performing as specified
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21511 in the body.
You can then email your comments to 21511 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-sed <at> gnu.org
:
bug#21511
; Package
sed
.
(Fri, 18 Sep 2015 07:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Beagleburt <bruce.gilbert <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-sed <at> gnu.org
.
(Fri, 18 Sep 2015 07:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I am doing an online course "Introduction to Linux"
[image: edX] Home Page <https://www.edx.org> LinuxFoundationX: LFS101x.2
Introduction to Linux
Chapter 13: Manipulating Text; Section 2. sed & awk
~$ cat > test1
This is a Sample Test File for the sed command.
The sed command is used to edit contents in a file.
For example, the sed command is used to replace words in a line or file.
~$ sed s/is/are/ test1
Thare is a Sample Test File for the sed command.
The sed command are used to edit contents in a file.
For example, the sed command are used to replace words in a line or file.
As you can see above the 1st instance of "is" in "This" is replaced by
"are" giving "Thare"; BUT the following two lines also have "is" replaced
by "are" EXCEPT for the "is" after "Thare". It is ALMOST as if I had
invoked the global: sed s/is/are/g test1 EXCEPT for the 2nd "is" after
"Thare"?
I am using sed version: sed (GNU sed) 4.2.2
'b'ye - Bruce Gilbert.
"For we have not been given a spirit of fear, but a spirit of Power; of
Love; & of a Sound Mind." 2nd Timothy, chapter 1, verse 7.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-sed <at> gnu.org
:
bug#21511
; Package
sed
.
(Fri, 18 Sep 2015 08:40:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On Fri, 18 Sep 2015 18:14:28 +1200, Beagleburt <bruce.gilbert <at> gmail.com>
wrote:
> I am doing an online course "Introduction to Linux"
> [image: edX] Home Page <https://www.edx.org> LinuxFoundationX: LFS101x.2
> Introduction to Linux
> Chapter 13: Manipulating Text; Section 2. sed & awk
>
> ~$ cat > test1
> This is a Sample Test File for the sed command.
> The sed command is used to edit contents in a file.
> For example, the sed command is used to replace words in a line or file.
> ~$ sed s/is/are/ test1
> Thare is a Sample Test File for the sed command.
> The sed command are used to edit contents in a file.
> For example, the sed command are used to replace words in a line or file.
>
> As you can see above the 1st instance of "is" in "This" is replaced by
> "are" giving "Thare"; BUT the following two lines also have "is" replaced
> by "are" EXCEPT for the "is" after "Thare". It is ALMOST as if I had
> invoked the global: sed s/is/are/g test1 EXCEPT for the 2nd "is" after
> "Thare"?
Sed replaces the first instance of "is" in each line with "are". Nothing
unexpected, no bug.
--
D.
Information forwarded
to
bug-sed <at> gnu.org
:
bug#21511
; Package
sed
.
(Sat, 19 Sep 2015 06:15:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
MY MISTAKE - I MISUNDERSTOOD THE VIDEO ABOUT sed. PLEASE IGNORE MY "bug"
REPORT! SORRY!
"For we have not been given a spirit of fear, but a spirit of Power; of
Love; & of a Sound Mind." 2nd Timothy, chapter 1, verse 7.
On 18 September 2015 at 18:14, Beagleburt <bruce.gilbert <at> gmail.com> wrote:
> I am doing an online course "Introduction to Linux"
> [image: edX] Home Page <https://www.edx.org> LinuxFoundationX: LFS101x.2
> Introduction to Linux
> Chapter 13: Manipulating Text; Section 2. sed & awk
>
> ~$ cat > test1
> This is a Sample Test File for the sed command.
> The sed command is used to edit contents in a file.
> For example, the sed command is used to replace words in a line or file.
> ~$ sed s/is/are/ test1
> Thare is a Sample Test File for the sed command.
> The sed command are used to edit contents in a file.
> For example, the sed command are used to replace words in a line or file.
>
> As you can see above the 1st instance of "is" in "This" is replaced by
> "are" giving "Thare"; BUT the following two lines also have "is" replaced
> by "are" EXCEPT for the "is" after "Thare". It is ALMOST as if I had
> invoked the global: sed s/is/are/g test1 EXCEPT for the 2nd "is" after
> "Thare"?
>
> I am using sed version: sed (GNU sed) 4.2.2
>
> 'b'ye - Bruce Gilbert.
>
>
>
> "For we have not been given a spirit of fear, but a spirit of Power; of
> Love; & of a Sound Mind." 2nd Timothy, chapter 1, verse 7.
>
[Message part 2 (text/html, inline)]
Reply sent
to
Jim Meyering <jim <at> meyering.net>
:
You have taken responsibility.
(Sat, 19 Sep 2015 16:37:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Beagleburt <bruce.gilbert <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 19 Sep 2015 16:37:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 21511-done <at> debbugs.gnu.org (full text, mbox):
tags 21511 notabug
thanks
On Fri, Sep 18, 2015 at 1:39 AM, Davide Brini <dave_br <at> gmx.com> wrote:
...
>> "are" giving "Thare"; BUT the following two lines also have "is" replaced
>> by "are" EXCEPT for the "is" after "Thare". It is ALMOST as if I had
>> invoked the global: sed s/is/are/g test1 EXCEPT for the 2nd "is" after
>> "Thare"?
>
> Sed replaces the first instance of "is" in each line with "are". Nothing
> unexpected, no bug.
Thanks for responding Davide.
I'm responding to the bug-number address, but with "-done" inserted to
close the auto-created "issue": 21511-done <at> debbugs.gnu.org.
I added the two lines at the top of this message to record in the
issue database that this is not a bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 18 Oct 2015 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.