From unknown Sun Jun 15 01:03:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#71119 <71119@debbugs.gnu.org> To: bug#71119 <71119@debbugs.gnu.org> Subject: Status: Order of options bug: -iE vs. -Ei Reply-To: bug#71119 <71119@debbugs.gnu.org> Date: Sun, 15 Jun 2025 08:03:52 +0000 retitle 71119 Order of options bug: -iE vs. -Ei=20 reassign 71119 sed submitter 71119 Jakub =C5=A0ebek severity 71119 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 22 10:48:40 2024 Received: (at submit) by debbugs.gnu.org; 22 May 2024 14:48:40 +0000 Received: from localhost ([127.0.0.1]:56363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9nGg-0003om-3J for submit@debbugs.gnu.org; Wed, 22 May 2024 10:48:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:34774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9fKY-0006eE-TZ for submit@debbugs.gnu.org; Wed, 22 May 2024 02:20:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9fKP-0001KH-LK for bug-sed@gnu.org; Wed, 22 May 2024 02:19:59 -0400 Received: from mxe-1-502.seznam.cz ([2a02:598:128:8a00::1000:502]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9fKL-0005EQ-AI for bug-sed@gnu.org; Wed, 22 May 2024 02:19:56 -0400 Received: from email.seznam.cz by smtpc-mxe-5744d876d6-jczhs (smtpc-mxe-5744d876d6-jczhs [2a02:598:128:8a00::1000:502]) id 2987a14982470c0a2ac1ee77; Wed, 22 May 2024 08:19:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=szn20221014; t=1716358785; bh=bq5ATE9kAkEhuRtYSI6CF8kFuQ6n90WcKu+QS2dP70o=; h=Received:From:To:Subject:Date:Message-Id:Mime-Version:X-Mailer: Content-Type; b=puy4Cp2X0WolB2f21Rj1d5RyVj6E6EI/ga6T08SiLjjXpi+NL2aCpf1lD/9TJJBNu XZyKhf1BikUG0HGgiME40e4j5mEmWqMfG1DHNfQQ1P1ft3F6b96ga9uQcGNMVnaY3Z 7D4tnXDRopkCfrIChboWeL3JuTSwgLFz9eHr31jTT3RvhpWMUmdPCYHmfqUXj5JJA0 If4k8wx1cmeBdJAfWnNnT3qHMQjv6AZRnD8Whh4Tq4tIEgNgnTG7uXSTSbuFemBHCU 6sh/U1qYYOw1eQoWVZCDSjbSuoun0ZMYF0yVPlKEYzU4gjO3N1qmtzPQZSezvYMpzB S7wgr0E/Rcv/A== Received: from 85-207-121-53.static.bluetone.cz (85-207-121-53.static.bluetone.cz [85.207.121.53]) by email.seznam.cz (szn-UNKNOWN-unknown) with HTTP; Wed, 22 May 2024 08:19:42 +0200 (CEST) From: =?utf-8?q?Jakub_=C5=A0ebek?= To: Subject: Order of options bug: -iE vs. -Ei Date: Wed, 22 May 2024 08:19:42 +0200 (CEST) Message-Id: <1Y{.3HbiT.1Fnt3y5}6U2.1cJOv{@seznam.cz> Mime-Version: 1.0 (szn-mime-2.1.48) X-Mailer: szn-UNKNOWN-unknown Content-Type: multipart/alternative; boundary="=_625687357326c2e30863cf86=bdf651c9-b7eb-511a-a815-1e166d98de1f_=" Received-SPF: pass client-ip=2a02:598:128:8a00::1000:502; envelope-from=jakub.sebek.o@seznam.cz; helo=mxe-1-502.seznam.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 22 May 2024 10:48:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.6 (--) --=_625687357326c2e30863cf86=bdf651c9-b7eb-511a-a815-1e166d98de1f_= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I think I found a bug in sed (GNU sed) 4.8 or I have misunderstood its syntax. The following command sed -iE 's/project-[0-9]+\.[0-9]+\.xsd/project-7.3.xsd/' project.xml does not work how it is expected to. Just switching the arguments to -Ei = makes it work normally. When -i is not supplied (print to stdout), it also= works correctly. Thanks Jakub =C5=A0ebek --=_625687357326c2e30863cf86=bdf651c9-b7eb-511a-a815-1e166d98de1f_= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,
I think I found a bug in sed (GNU sed) 4= .8 or I have misunderstood its syntax.
The following command=
sed -iE 's/project-[0-9]+\.[0-9]+\.xsd/project-7.3.xsd/' projec= t.xml
does not work how it is expected to. Just switching the ar= guments to -Ei makes it work normally. When -i is not supplied (print to s= tdout), it also works correctly.
Thanks
Jakub = =C5=A0ebek
--=_625687357326c2e30863cf86=bdf651c9-b7eb-511a-a815-1e166d98de1f_=--