From unknown Mon Aug 11 19:06:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21511: sed not performing as specified Resent-From: Beagleburt Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Fri, 18 Sep 2015 07:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21511 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 21511@debbugs.gnu.org X-Debbugs-Original-To: bug-sed@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144256278921034 (code B ref -1); Fri, 18 Sep 2015 07:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2015 07:53:09 +0000 Received: from localhost ([127.0.0.1]:36625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcqTj-0005T9-BD for submit@debbugs.gnu.org; Fri, 18 Sep 2015 03:53:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37901) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcowR-0002sr-7F for submit@debbugs.gnu.org; Fri, 18 Sep 2015 02:14:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcowP-0001Q4-UO for submit@debbugs.gnu.org; Fri, 18 Sep 2015 02:14:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_IMAGE_ONLY_20,HTML_MESSAGE,HTML_SHORT_LINK_IMG_3,T_DKIM_INVALID, T_REMOTE_IMAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcowP-0001Py-Qq for submit@debbugs.gnu.org; Fri, 18 Sep 2015 02:14:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcowO-0007PA-Hl for bug-sed@gnu.org; Fri, 18 Sep 2015 02:14:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcowN-0001Ov-CJ for bug-sed@gnu.org; Fri, 18 Sep 2015 02:14:36 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:36245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcowN-0001NT-4p for bug-sed@gnu.org; Fri, 18 Sep 2015 02:14:35 -0400 Received: by lbcao8 with SMTP id ao8so20063919lbc.3 for ; Thu, 17 Sep 2015 23:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=X8kBCEUMYzPaxwSwHXB66CiksG64NInwDaFi5puR0g4=; b=F/pNQwJLa4XVpmlHhT5EsNzGRNoLvT/zsv7bm0inLcX/kXUp2OnB3L8x/3NFyDB6jW 3od7RGNKTsAKmDA4DQnmgIFOEDirRYslqn+/BsjGjiZW4Z8jHOHMW47hpc9Ke2eBwLFR Qz7wgC2mn/B69B2sH1jBQ5BNCRIn1wK6RucMrLb7O+xDQdCT3fjv/nmb3Z7p2Vyg3n5S CfL5R/9LgvW75SDaNfjAaLqPQ+85xk02GtTazeT0IFi00XI0q4f5RRs9f9sVCAPmSAzu f9JM/Jkw7kkbSyv+vot855lgs5+MSb1b6++vXjIolD87t1h95oTzD9DXDQ375UdTsmGr +87A== MIME-Version: 1.0 X-Received: by 10.152.6.201 with SMTP id d9mr2376566laa.66.1442556868772; Thu, 17 Sep 2015 23:14:28 -0700 (PDT) Received: by 10.112.51.84 with HTTP; Thu, 17 Sep 2015 23:14:28 -0700 (PDT) Date: Fri, 18 Sep 2015 18:14:28 +1200 Message-ID: From: Beagleburt Content-Type: multipart/alternative; boundary=089e013d1a94bb4b95051fff714a X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.0 (---) X-Mailman-Approved-At: Fri, 18 Sep 2015 03:53:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (---) --089e013d1a94bb4b95051fff714a Content-Type: text/plain; charset=UTF-8 I am doing an online course "Introduction to Linux" [image: edX] Home Page 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. --089e013d1a94bb4b95051fff714a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I am doing an online course "Introduction to Lin= ux"=C2=A0

=20 3D"edX" Home Page =20

LinuxFoundationX: LFS101x.2 Intr= oduction to Linux

Chapter 13: Manipulating Text; Section 2. = sed & awk

~$ cat > test1
Thi= s is a Sample Test File for the sed command.
The sed command is u= sed to edit contents in a file.
For example, the sed command is u= sed to replace words in a line or file.
~$ sed s/is/ar= e/ test1
Thare is a Sample Test File for the sed command.
The sed command are used to edit contents in a file.
For examp= le, 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&quo= t;; BUT the following two lines also have "is" replaced by "= are" EXCEPT for the "is" after "Thare". It is ALMO= ST 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 gi= ven a spirit of fear, but a spirit of Power; of Love; & of a Sound Mind= ." 2nd Timothy, chapter 1, verse 7.
--089e013d1a94bb4b95051fff714a-- From unknown Mon Aug 11 19:06:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21511: sed not performing as specified Resent-From: Davide Brini Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Fri, 18 Sep 2015 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21511 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 21511@debbugs.gnu.org X-Debbugs-Original-To: bug-sed@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144256556525523 (code B ref -1); Fri, 18 Sep 2015 08:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2015 08:39:25 +0000 Received: from localhost ([127.0.0.1]:36634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcrCW-0006db-UP for submit@debbugs.gnu.org; Fri, 18 Sep 2015 04:39:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57819) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcrCV-0006dT-5f for submit@debbugs.gnu.org; Fri, 18 Sep 2015 04:39:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcrCT-0004vY-UA for submit@debbugs.gnu.org; Fri, 18 Sep 2015 04:39:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcrCT-0004vO-JH for submit@debbugs.gnu.org; Fri, 18 Sep 2015 04:39:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcrCS-0004Ms-Di for bug-sed@gnu.org; Fri, 18 Sep 2015 04:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcrCP-0004ty-7u for bug-sed@gnu.org; Fri, 18 Sep 2015 04:39:20 -0400 Received: from mout.gmx.net ([212.227.17.20]:60222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcrCP-0004tb-2T for bug-sed@gnu.org; Fri, 18 Sep 2015 04:39:17 -0400 Received: from zoot.sax ([84.88.50.104]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0M55BC-1YfoKL0n0Q-00zDGp for ; Fri, 18 Sep 2015 10:39:15 +0200 Date: Fri, 18 Sep 2015 10:39:14 +0200 From: Davide Brini In-Reply-To: References: X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID: <0MegeC-1ZEbBD1UzY-00OE5h@mail.gmx.com> X-Provags-ID: V03:K0:HJ7KNgSA/dMwkRpupp9RtwzM4FHZsAuKeMpb2cUSfhN0ghgue2w uUqzRnSOCaaDMEz+LWdRBCAUn3jIm48hxQQfmwQlLkA3t2ERf8+ifBt7DK1PBzucJlIvWir NtM600zs1OZLDqyavf9h0nKXDigtkF8pLsXS+569lWsKZnSt9GK4G+S72adOro9VzxIW1UJ DNPhQn4r+kylxMpaAscTA== X-UI-Out-Filterresults: notjunk:1;V01:K0:JJB/AY7ETbE=:JKzlJx68JX7ynGpOb2UXaa Tu7DY0UyP3WA6Ky3Rq9K2JgOYNQILNR5O62FLGaj3tBl1hHp1SNOvUojkihGwg1pQvQn6xvwS RFGVGNI3fEiDEwFFvD9LqW9QanE4elF6NHVxCPXFZh+YOvkKhTG3aRN3HhsJpTTlSIcsiLwt8 9Z82bmXVW2B1dcnYgprSN/jV80jSbI+Ijk4BU605CfENyOPai733djhk5fZxar2/fn+UPcfa2 A8Ml3ytomWCxSGAHlfIP/YbaPFk0V/0oXTas96/0LM2e03vEJv5VSGlP33LBteEVjms6vzdVK FxxEV2TWgh0Nkp8y8wYQmZ7zHPS1fEucyvwB9Gj/w2evCjZkbVSwRTRkm40gjS3krIKIlrwyH zgdBGSWGlReZ2zcl24ozqxiqSmrSIYeYv3OExBviwkbewY0Y8I5y9Vaf+feKkjUA/y5aAjXj2 7GW0+MLEpfldwCfhOfrn1OvAkjGKwN67jHy/eLoPsMUUFJ5ow5ruCF3Ewk4CC27Ij99Y+W/R7 ZztphNQL2drfoEEBjmhqmLHAHPx1tlkcCX+3S81WDMSc70a1sEzhRE/7A9uIt/CEXPb0qoV4t z484p/k3Yl9R3YwHWjmunFIrguqK7iPdtjkLCWfEEgQ2nd5ZMRKCbVi2sc+ikt8jAnKzKk+rf XkE4kbV7YrOeeMoUrGiF2OtKhAcoUCL6Q4r76PuvddTqIgj491ifTf40yHrm6eS4v3EkAo+TS CD/vxt69BS58enscEUL4kMqvprqtn0qUUVwUTg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.1 (----) On Fri, 18 Sep 2015 18:14:28 +1200, Beagleburt wrote: > I am doing an online course "Introduction to Linux" > [image: edX] Home Page 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. From unknown Mon Aug 11 19:06:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21511: sed not performing as specified Resent-From: Beagleburt Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Sat, 19 Sep 2015 06:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21511 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 21511@debbugs.gnu.org X-Debbugs-Original-To: bug-sed@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144264330020712 (code B ref -1); Sat, 19 Sep 2015 06:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Sep 2015 06:15:00 +0000 Received: from localhost ([127.0.0.1]:37403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdBQJ-0005Nz-NB for submit@debbugs.gnu.org; Sat, 19 Sep 2015 02:15:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37048) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdBQG-0005Nq-Id for submit@debbugs.gnu.org; Sat, 19 Sep 2015 02:14:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdBQF-0003fa-4Q for submit@debbugs.gnu.org; Sat, 19 Sep 2015 02:14:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_IMAGE_ONLY_28,HTML_MESSAGE,T_DKIM_INVALID,T_REMOTE_IMAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdBQF-0003fW-0Q for submit@debbugs.gnu.org; Sat, 19 Sep 2015 02:14:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdBQD-0003TX-S7 for bug-sed@gnu.org; Sat, 19 Sep 2015 02:14:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdBQC-0003eF-Ie for bug-sed@gnu.org; Sat, 19 Sep 2015 02:14:53 -0400 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:35881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdBQC-0003bl-5h for bug-sed@gnu.org; Sat, 19 Sep 2015 02:14:52 -0400 Received: by lanb10 with SMTP id b10so41464073lan.3 for ; Fri, 18 Sep 2015 23:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=hlx4QFyLWxG84qw3KMUQoW/CbH5CqBFL692HQydEWLc=; b=hAQORhL0Y0f9i6K2PVWn3dqWR73c91ukrAH+R8mg/Y+fYAiTdYUS44AMfh1HNnXmjm QCH4ajJK7kARMCTxCiPq1TwTTZGnT6WA4GmozZzzAucNaRZY6sTNpMm/DE+LypQULlwb xqLhiQYcMZP6wumqc+nKA9GxffNBwwHTq11ZpD4CUcgDh6ywcixWvwAicR1Y8XRWbKEf Vw/bIdiRlqZUfwgAZXTfAOK5FBcfP0b48ISRRHM4Kb+C4gvO56BA7lQerVDDp/XtG1cC LRoP5VOH5k2p6N9FLjEOszWP68FOSAQ6tmVWykYaYhATb2tfOWih4CjGPXdSBbeepMpE GeMQ== MIME-Version: 1.0 X-Received: by 10.112.146.104 with SMTP id tb8mr4500645lbb.35.1442643285823; Fri, 18 Sep 2015 23:14:45 -0700 (PDT) Received: by 10.112.51.84 with HTTP; Fri, 18 Sep 2015 23:14:45 -0700 (PDT) In-Reply-To: References: Date: Sat, 19 Sep 2015 18:14:45 +1200 Message-ID: From: Beagleburt Content-Type: multipart/alternative; boundary=047d7b3a8bd096d6ed05201390a5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.3 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (---) --047d7b3a8bd096d6ed05201390a5 Content-Type: text/plain; charset=UTF-8 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 wrote: > I am doing an online course "Introduction to Linux" > [image: edX] Home Page 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. > --047d7b3a8bd096d6ed05201390a5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
MY MISTAKE - I MISUNDERSTOOD THE VIDEO ABOUT sed. PLEASE I= GNORE MY "bug" REPORT! SORRY!
"F= or 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@gmail.com> wrote:
I am doing an online course "Introduc= tion to Linux"=C2=A0

=20 3D"edX" Home Page =20

LinuxFoundationX: LFS101x.2 Introduction to Linux

=
Chapter 13: Manipulating Text; Section 2. sed & awk

~$ cat > test1
This is a Sample Test Fil= e for the sed command.
The sed command is used to edit contents i= n a file.
For example, the sed command is used to replace words i= n a line or file.
~$ sed s/is/are/ test1
Tha= re 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 ar= e used to replace words in a line or file.

A= s 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 t= he "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 &= quot;Thare"?

I am using sed version: sed (GNU= sed) 4.2.2

'b'ye - Bruce Gilbert.



&q= uot;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.

--047d7b3a8bd096d6ed05201390a5-- From unknown Mon Aug 11 19:06:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Beagleburt Subject: bug#21511: closed (Re: bug#21511: sed not performing as specified) Message-ID: References: X-Gnu-PR-Message: they-closed 21511 X-Gnu-PR-Package: sed Reply-To: 21511@debbugs.gnu.org Date: Sat, 19 Sep 2015 16:37:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1442680622-20446-1" This is a multi-part message in MIME format... ------------=_1442680622-20446-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21511: sed not performing as specified 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 21511@debbugs.gnu.org. --=20 21511: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21511 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1442680622-20446-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21511-done) by debbugs.gnu.org; 19 Sep 2015 16:36:03 +0000 Received: from localhost ([127.0.0.1]:37857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdL7K-0005IT-WA for submit@debbugs.gnu.org; Sat, 19 Sep 2015 12:36:03 -0400 Received: from mail-ig0-f172.google.com ([209.85.213.172]:36134) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZdL7I-0005I3-CC for 21511-done@debbugs.gnu.org; Sat, 19 Sep 2015 12:36:01 -0400 Received: by igcrk20 with SMTP id rk20so36816997igc.1 for <21511-done@debbugs.gnu.org>; Sat, 19 Sep 2015 09:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=voO61k509oxJYFXHhalEDHP/msCACEutwB6j7EVnlf0=; b=rKFDdzKCTWbefoHa+T3fY3rA25o7O/3KDmRNi4FqItnhmmslBRqB4Aj98GBlD0KQTG cDs1rC6e8cv83iaIBgW0wPwoxvJpn0hfKeZmqV/qHdnAGhPDrAwyVmOSIHWqhMLHlfKN duu+uO4QpG70DEUBhHcm0rn8xQUM8gZSqnqgLJwlJFPQ4w7rHOzsu+QwVI2XTry1wDTw 9zpZaT9FFgs+U/5VLMihOqVscW3VDkABOV5o2rDLtGeBhR/D8zm0vWS4SIco2Js6W8pl cd2dXfyuvUINU7VpXlaH0TVcPM3stfUSO5i0tcdCGpc4wnIloSvXvnwWKJjk/WQC+YRa 806A== X-Received: by 10.50.83.65 with SMTP id o1mr3473330igy.50.1442680559656; Sat, 19 Sep 2015 09:35:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.137.136 with HTTP; Sat, 19 Sep 2015 09:35:40 -0700 (PDT) In-Reply-To: <0MegeC-1ZEbBD1UzY-00OE5h@mail.gmx.com> References: <0MegeC-1ZEbBD1UzY-00OE5h@mail.gmx.com> From: Jim Meyering Date: Sat, 19 Sep 2015 09:35:40 -0700 X-Google-Sender-Auth: 6Y28BF8KjB5EYljQcIS3rftSGk4 Message-ID: Subject: Re: bug#21511: sed not performing as specified To: Davide Brini Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21511-done Cc: 21511-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) tags 21511 notabug thanks On Fri, Sep 18, 2015 at 1:39 AM, Davide Brini 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@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. ------------=_1442680622-20446-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Sep 2015 07:53:09 +0000 Received: from localhost ([127.0.0.1]:36625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcqTj-0005T9-BD for submit@debbugs.gnu.org; Fri, 18 Sep 2015 03:53:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37901) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcowR-0002sr-7F for submit@debbugs.gnu.org; Fri, 18 Sep 2015 02:14:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcowP-0001Q4-UO for submit@debbugs.gnu.org; Fri, 18 Sep 2015 02:14:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_IMAGE_ONLY_20,HTML_MESSAGE,HTML_SHORT_LINK_IMG_3,T_DKIM_INVALID, T_REMOTE_IMAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcowP-0001Py-Qq for submit@debbugs.gnu.org; Fri, 18 Sep 2015 02:14:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcowO-0007PA-Hl for bug-sed@gnu.org; Fri, 18 Sep 2015 02:14:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcowN-0001Ov-CJ for bug-sed@gnu.org; Fri, 18 Sep 2015 02:14:36 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:36245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcowN-0001NT-4p for bug-sed@gnu.org; Fri, 18 Sep 2015 02:14:35 -0400 Received: by lbcao8 with SMTP id ao8so20063919lbc.3 for ; Thu, 17 Sep 2015 23:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=X8kBCEUMYzPaxwSwHXB66CiksG64NInwDaFi5puR0g4=; b=F/pNQwJLa4XVpmlHhT5EsNzGRNoLvT/zsv7bm0inLcX/kXUp2OnB3L8x/3NFyDB6jW 3od7RGNKTsAKmDA4DQnmgIFOEDirRYslqn+/BsjGjiZW4Z8jHOHMW47hpc9Ke2eBwLFR Qz7wgC2mn/B69B2sH1jBQ5BNCRIn1wK6RucMrLb7O+xDQdCT3fjv/nmb3Z7p2Vyg3n5S CfL5R/9LgvW75SDaNfjAaLqPQ+85xk02GtTazeT0IFi00XI0q4f5RRs9f9sVCAPmSAzu f9JM/Jkw7kkbSyv+vot855lgs5+MSb1b6++vXjIolD87t1h95oTzD9DXDQ375UdTsmGr +87A== MIME-Version: 1.0 X-Received: by 10.152.6.201 with SMTP id d9mr2376566laa.66.1442556868772; Thu, 17 Sep 2015 23:14:28 -0700 (PDT) Received: by 10.112.51.84 with HTTP; Thu, 17 Sep 2015 23:14:28 -0700 (PDT) Date: Fri, 18 Sep 2015 18:14:28 +1200 Message-ID: Subject: sed not performing as specified From: Beagleburt To: bug-sed@gnu.org Content-Type: multipart/alternative; boundary=089e013d1a94bb4b95051fff714a X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 18 Sep 2015 03:53:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (---) --089e013d1a94bb4b95051fff714a Content-Type: text/plain; charset=UTF-8 I am doing an online course "Introduction to Linux" [image: edX] Home Page 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. --089e013d1a94bb4b95051fff714a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I am doing an online course "Introduction to Lin= ux"=C2=A0

=20 3D"edX" Home Page =20

LinuxFoundationX: LFS101x.2 Intr= oduction to Linux

Chapter 13: Manipulating Text; Section 2. = sed & awk

~$ cat > test1
Thi= s is a Sample Test File for the sed command.
The sed command is u= sed to edit contents in a file.
For example, the sed command is u= sed to replace words in a line or file.
~$ sed s/is/ar= e/ test1
Thare is a Sample Test File for the sed command.
The sed command are used to edit contents in a file.
For examp= le, 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&quo= t;; BUT the following two lines also have "is" replaced by "= are" EXCEPT for the "is" after "Thare". It is ALMO= ST 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 gi= ven a spirit of fear, but a spirit of Power; of Love; & of a Sound Mind= ." 2nd Timothy, chapter 1, verse 7.
--089e013d1a94bb4b95051fff714a-- ------------=_1442680622-20446-1--