From unknown Tue Aug 19 10:01:22 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#59599 <59599@debbugs.gnu.org> To: bug#59599 <59599@debbugs.gnu.org> Subject: Status: Possible sed bug Reply-To: bug#59599 <59599@debbugs.gnu.org> Date: Tue, 19 Aug 2025 17:01:22 +0000 retitle 59599 Possible sed bug reassign 59599 sed submitter 59599 John Larew severity 59599 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 25 23:10:26 2022 Received: (at submit) by debbugs.gnu.org; 26 Nov 2022 04:10:26 +0000 Received: from localhost ([127.0.0.1]:37622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oymWH-0003XD-Ha for submit@debbugs.gnu.org; Fri, 25 Nov 2022 23:10:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:40114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyimg-0007pI-1H for submit@debbugs.gnu.org; Fri, 25 Nov 2022 19:11:08 -0500 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 1oyimf-0007cK-Mi for bug-sed@gnu.org; Fri, 25 Nov 2022 19:11:05 -0500 Received: from mail-dm6nam10olkn20800.outbound.protection.outlook.com ([2a01:111:f400:7e88::800] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyimY-0003RF-D4 for bug-sed@gnu.org; Fri, 25 Nov 2022 19:11:05 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mN7fRwvlvqIyreROpdo+thcLGPTsReXPQ6Q9zp0drURkMuZoCSTFNW8zqElk8Dl3aIVmYpffeBi6X+UHeKK+8RR5dwAhRwV+l2lfoN41adk+TubInSdOcZvCtPMiH3/ihct3Gv+OzWKURyiFd3jF5vvpDmNJEq3nROhXcA3D1YTXAty/YcU7qc9OUxPBXMSE1XLyqKkH/8Kvn7d4TzqIxT9bHPaTWM5hCK73qg4by2ubXdRRdSmwEWf0kB3gU7rrfc51644HKl3nJ2ymloqERqVDi2B77hHU/FXwWLCl06kk7htoyyCV6Ait8PzG9m5sZ26dAmMKR6HyK4WMTph4Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NyMGQ9SqObqJxEa7nYTi1Gc0Y3tHC4Ok3EVqG4h7ZS4=; b=CGs2ajY29Dfz5sfX8vOCgZ3OFNr3cA47LWAzFKcYp2QpHKDwYCP/lk5mMfC/DdY3OOV5CbWyChxSYITWqX+z8QZwcWVEbckVzagrar/wH2ewRckHtdK0JLygr7dyLh3xw8C/YcxccUjlLmV1MWGtOJxjkPUawWCZV4LcFQocDSsFBEOLQLj88SMSKjquwC/0GAM4blhIoFzknwSiP0yptrQrw8pen49k/wBwgoKSHXMMnhol8fH7T3qwHyFqGCU/lAywBZgug3pETxho1D5GQusRsINkqpQS6qWrQWll64VzOiSvfc8cz+4oheKukH5HhbWqFGm7IWll++sEpxkaeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NyMGQ9SqObqJxEa7nYTi1Gc0Y3tHC4Ok3EVqG4h7ZS4=; b=O9drb0ooE/VgxxIKoDX771UJIT++raY1qkC994SbYU7PKXZMoXGQWQMofZ4ch3BIGoKW+Rv6FwmN/tE7Fw/Xpfr0u4E5ps3h41/+fc89MWsGbuxcjksrtzKbQ/1HiYQ3yQ5it8aiFfKErsibJcnSaVC3C89Sc2FwAnH7SBwlmAYvE0UQaLViNjcjLoHxOyby6ALkMbcguOjb7xjyvVKZwLL08dj7Pw3h1qP0Tixt2D69uLidaHfOj3OH/am4MphPJNhp+fu3wt3F0+MIigv0GrzRJ+RRMVq2OFhAnGeUzyqSJNWrjkpxUYQZ+GiVDAckwJYWoVRkhSxiRCnSZlXrug== Received: from DM6PR13MB3771.namprd13.prod.outlook.com (2603:10b6:5:229::22) by SN4PR13MB5774.namprd13.prod.outlook.com (2603:10b6:806:216::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.20; Sat, 26 Nov 2022 00:05:54 +0000 Received: from DM6PR13MB3771.namprd13.prod.outlook.com ([fe80::4ad8:a641:eec9:a48b]) by DM6PR13MB3771.namprd13.prod.outlook.com ([fe80::4ad8:a641:eec9:a48b%9]) with mapi id 15.20.5857.021; Sat, 26 Nov 2022 00:05:53 +0000 From: John Larew To: "bug-sed@gnu.org" Subject: Possible sed bug Thread-Topic: Possible sed bug Thread-Index: AQHZASjYSHplGegjKEay9mQJf5B3kw== Date: Sat, 26 Nov 2022 00:05:53 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [TpEs1kL91JAZlsxb1/KQ3e7dBrUxdKrj] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR13MB3771:EE_|SN4PR13MB5774:EE_ x-ms-office365-filtering-correlation-id: 27fc07bf-d86b-40c6-5d4e-08dacf41fc4c x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8Uc62gpnWs9qCjWj/Uc7HMgR4JjbUl4UVYsMiXUDb3fP+uRRYRycgi/gzmxtMB7MzzvyXHDw8+1l47aV885IN4qeE85py4ts+HpOhtTlRGDubA+ZpvjrO1R6/XSP4iE1ylL3gxdEyQTrPcTBfr6sap5e93+IJiXiD+DDkLHOsgoFWJEN8/hx75h7GbcIO9uYY1JA+zEYWgke3mOF5Ybu6drh/O3FA8eoEs2Vo3I2IEUp2LGwKojGgWTbjza3sBpgosM2r4y6A5jJnKWJ+YVKKBPWLsbNxbsUiUd8Dub+O2L8f1va/2hUaVmuuA9x5lMYIS6t7YCV5RddwzPPB+9JGjWMAc+oe+r/SbQnoFmJ6pijnwwGKFGhxjnZQGrLm1wrgMkwfwpL4IpXZS3/JIdqoO/XBH3EzwsNc5wcCf4w3omut9BQa2vMysTkf2YUBv+PgKa531BmKo4AF3UtvenEgLh5J4QdnZpUGfOlXZmoTTIILynrmLEXrKnWXnWP2dyxjyjaW71eAnDzYFHWRo8MOxn7bQezUtH7/LYqhLEpkTcW+2MLAQG1WXjC/8pdMdeu84l1i23yyEMsekOym0WBryUDXGjJ79wF5l6buWZvQwU= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?S2RZE8WUhkBbk3+9PW7Fgd3smG0if358vAHyDejqQFFzOucl5J4yaTYKYZB/?= =?us-ascii?Q?dNr+rVXJqZ77BnoDd3NqIx20/iXMMGUW53OjZ66b6RPYtqx14NM0YMVhnR1D?= =?us-ascii?Q?c9drdSK31sMzYxDcl9LFL9esChzPoaw+IJpG34hE0b4qI3b0CM3Absmlmbuq?= =?us-ascii?Q?taL9tXbbyVuzgrOdXROs9W6eIBUmtqLLBwAARUlo9zVZwgtYji9jkfvR+Tbv?= =?us-ascii?Q?oDsetZmxbfSAuWJcpTn3FGwYgm8ty/gH4aUN/NovU/mJeKAfWCkQbeCIblbC?= =?us-ascii?Q?UouYjAx5FJMCXvoP8jy2dX5Ch/adDjkepcze2L8eqwIAa1mklzqPvpxzNpLI?= =?us-ascii?Q?w3fdgacQbmZ1nCaoa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q?TFQuOZnlpauefrb8ONleFssm1FvljEEtEXDpUEfkhgU7EV42q6iLm2loEGJH?= =?us-ascii?Q?WD0=3D?= Content-Type: multipart/alternative; boundary="_000_DM6PR13MB37714796843FA2E994DC689F9C0E9DM6PR13MB3771namp_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR13MB3771.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 27fc07bf-d86b-40c6-5d4e-08dacf41fc4c X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2022 00:05:53.8409 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR13MB5774 Received-SPF: pass client-ip=2a01:111:f400:7e88::800; envelope-from=john.larew@outlook.com; helo=NAM10-DM6-obe.outbound.protection.outlook.com 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 25 Nov 2022 23:10:16 -0500 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.3 (--) --_000_DM6PR13MB37714796843FA2E994DC689F9C0E9DM6PR13MB3771namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have to admit to little time using the tool. To my admittedly limited kno= wledge, this appears to be a bug: [Reputation: Disabled] sed with wildcard matching ________________________________ I have a DOS file with several record sequences as follows: ... Online 1234 Main St Anytown ... I'm trying to edit the file with the following sed command; sed -z 's/Online\r\n\(.*\)\r\n\(.*\)/Online\r\n\1 \2/g' test.txt but there is no change in the stdout stream, much to my surprise. Thanks in advance for any insight you can provide. I am trying to remove the newline after the 2nd record following "Online", = a street address. I have verified the file contents using sed --debug functionality. I have since solved the problem with an alternate sed programming methodolo= gy. sed --version reports 4.9. Thanks for your time and consideration. John Larew 860-917-0225 John.Larew@outlook.com --_000_DM6PR13MB37714796843FA2E994DC689F9C0E9DM6PR13MB3771namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I have to admit to little time using the tool. To my admittedly limited kno= wledge, this appears to be a bug:

3D"Reputation:=
sed with wildcard= matching

I have a DOS file with several record sequ= ences as follows:

...
Online
1234 Main St
Anytown
...

I'm trying to edit the file with the following sed command;

sed -z 's/Online\r\n\(.*\)\r\n\(.*\)/Online\r\n\1 \2/g' test.txt

but there is no change in the stdout stream, much to my surprise.

Thanks in advance for any insight you can provide.

I am trying to remove the newline after the 2nd record following "Onli= ne", a street address.

I have verified the file contents using sed --debug functionality.

I have since solved the problem with an alternate sed programming methodolo= gy.

sed --version reports 4.9.

Thanks for your time and consideration.


John Larew
860-917-0225
= John.Larew@outlook.com
--_000_DM6PR13MB37714796843FA2E994DC689F9C0E9DM6PR13MB3771namp_--