Received: (at 73598) by debbugs.gnu.org; 11 Oct 2024 10:38:12 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 11 06:38:12 2024 Received: from localhost ([127.0.0.1]:33594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1szD2A-0001lV-Ra for submit <at> debbugs.gnu.org; Fri, 11 Oct 2024 06:38:12 -0400 Received: from csmtpq4-prd-nl1-vfz.edge.unified.services ([84.116.50.10]:21647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <p.j.m.smulders@HIDDEN>) id 1szCKz-0007kL-OL for 73598 <at> debbugs.gnu.org; Fri, 11 Oct 2024 05:53:36 -0400 Received: from csmtp5-prd-nl1-vfz.nl1.unified.services ([100.107.80.68] helo=csmtp5-prd-nl1-vfz.edge.unified.services) by csmtpq4-prd-nl1-vfz.edge.unified.services with esmtp (Exim 4.93) (envelope-from <p.j.m.smulders@HIDDEN>) id 1szCKg-00GOlj-01 for 73598 <at> debbugs.gnu.org; Fri, 11 Oct 2024 11:53:14 +0200 Received: from [192.168.178.136] ([84.27.25.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by csmtp5-prd-nl1-vfz.edge.unified.services with ESMTPSA id zCKfshssgSJu7zCKfsqjLu; Fri, 11 Oct 2024 11:53:13 +0200 X-Env-Mailfrom: p.j.m.smulders@HIDDEN X-Env-Rcptto: 73598 <at> debbugs.gnu.org X-SourceIP: 84.27.25.183 X-CNFS-Analysis: v=2.4 cv=CMN4XgrD c=1 sm=1 tr=0 ts=6708f589 cx=a_exe a=MosmSTqDC2BNoylIkaMlGg==:117 a=MosmSTqDC2BNoylIkaMlGg==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=BUytbUPsL9HYeBH5004A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.j.m.smulders@HIDDEN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=home.nl; s=202002corplgsmtpnl; t=1728640393; bh=GANuSF6nrBcc0tvcCR/jOKyQWzUWIBFSaEh3wNN/Tyw=; h=Date:From:Subject:To:References:In-Reply-To; b=Oy7lUnYxpFJtfAXsRp6u43STAHSN2XwDuRakMAC4qEPn3Ju9KWX6ZjlIYywR/ZVAw nDKXXObBGTEnlSbuSnGHf17XxVP7o6EU8NHROcGeZZrJ9BFGQyfi6DQczlaIa2g6kW DjsK/Slr1uJqndJMKbIbbCE8WowZ7Nh6rTYIePHmcxVrD0Ag8j8f2DQXUJlOYqpcg8 EL7iWZ5EcAQTyqqrZly4f53bxcGoZIkxNo5cdsogsu2KK7Gni3xf7pI7W8f0mxGo1T VXQVWgm8bP8AGrgx5W8xooh71qyxT9hQaaqxmoO7t8Kd7iSbSps2c3j98qKmIsFa5E B3ivlHYoezt1A== Message-ID: <4f94bb14-2444-4194-ae09-1f71a8cce092@HIDDEN> Date: Fri, 11 Oct 2024 11:53:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Peter Smulders <p.j.m.smulders@HIDDEN> Subject: Re: bug#73598: Acknowledgement (bug in sed Invalid preceding regular expression) To: 73598 <at> debbugs.gnu.org References: <3fed214b-d2d2-443b-be3d-7ff868f6969e@HIDDEN> <handler.73598.B.172787399426728.ack <at> debbugs.gnu.org> <604cd4be-55bc-480a-9c2e-0ad9faec2945@HIDDEN> Content-Language: nl In-Reply-To: <604cd4be-55bc-480a-9c2e-0ad9faec2945@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfPHn6X5r099J3wWuv/9HvRUIH9XjSvfp5clJ1/bX531qleAcuOIlg8y2xCgWHFXJup76So+HWrAnnTdAx91CiY/N7mT8b8wHv8UX+SsSqVGTYpeqbQFt 3+2qnY6CEIdivjczP6irylAa0LVVmrjPRtKbQ2q1Fp0rIUh3TrXv56rmEtgUOCsyTcI/70rlHOTI7TjzIkfOQqQ8OxR3w6n9R6s= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73598 X-Mailman-Approved-At: Fri, 11 Oct 2024 06:38:06 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Some further observations regarding the behaviour of regular expressions in 'sed' as noticed before the following is not accepted $ echo ****somestring | sed s/\*\*\*\*// sed: -e expression #1, char 8: Invalid preceding regular expression but the following does $ echo ****somestring | sed s/\\*\\*\\*\\*// somestring However, even this does not work anymore if the command is surrounded by backquotes. e.g. $ name=`echo ****some string | sed s/\\*\\*\\*\\*//` sed: -e expression #1, char 8: Invalid preceding regular expression On the other hand the equivalent using $() is ok: $ name=$(echo ****some string | sed s/\\*\\*\\*\\*//) $ echo $name some string On 2-10-2024 16:50, Peter Smulders wrote: > I think I know already what is the matter. For to work properly double > escapes are needed, i.e. > > echo ****some string | sed s/\\*\\*\\*\\*// > > But I still find it strange ... > > On 2-10-2024 15:00, GNU bug Tracking System wrote: >> Thank you for filing a new bug report with debbugs.gnu.org. >> >> This is an automatically generated reply to let you know your message >> has been received. >> >> Your message is being forwarded to the package maintainers and other >> interested parties for their attention; they will reply in due course. >> >> Your message has been sent to the package maintainer(s): >> bug-sed@HIDDEN >> >> If you wish to submit further information on this problem, please >> send it to 73598 <at> debbugs.gnu.org. >> >> Please do not send mail to help-debbugs@HIDDEN unless you wish >> to report a problem with the Bug-tracking system. >>
bug-sed@HIDDEN
:bug#73598
; Package sed
.
Full text available.Received: (at 73598) by debbugs.gnu.org; 2 Oct 2024 15:20:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 11:20:32 2024 Received: from localhost ([127.0.0.1]:58998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sw19T-00076h-JS for submit <at> debbugs.gnu.org; Wed, 02 Oct 2024 11:20:32 -0400 Received: from csmtpq4-prd-nl1-vfz.edge.unified.services ([84.116.50.10]:52343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <p.j.m.smulders@HIDDEN>) id 1sw0gq-0005Of-QF for 73598 <at> debbugs.gnu.org; Wed, 02 Oct 2024 10:50:57 -0400 Received: from csmtp3-prd-nl1-vfz.nl1.unified.services ([100.107.80.136] helo=csmtp3-prd-nl1-vfz.edge.unified.services) by csmtpq4-prd-nl1-vfz.edge.unified.services with esmtp (Exim 4.93) (envelope-from <p.j.m.smulders@HIDDEN>) id 1sw0gj-00ECbg-1P for 73598 <at> debbugs.gnu.org; Wed, 02 Oct 2024 16:50:49 +0200 Received: from [192.168.178.136] ([84.27.25.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by csmtp3-prd-nl1-vfz.edge.unified.services with ESMTPSA id w0gisJC8O5TFiw0gisprIf; Wed, 02 Oct 2024 16:50:49 +0200 X-Env-Mailfrom: p.j.m.smulders@HIDDEN X-Env-Rcptto: 73598 <at> debbugs.gnu.org X-SourceIP: 84.27.25.183 X-CNFS-Analysis: v=2.4 cv=WIEtXWsR c=1 sm=1 tr=0 ts=66fd5dc9 cx=a_exe a=MosmSTqDC2BNoylIkaMlGg==:117 a=MosmSTqDC2BNoylIkaMlGg==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=8Y624AM3SWLfBmSsJn0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.j.m.smulders@HIDDEN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=home.nl; s=202002corplgsmtpnl; t=1727880649; bh=wBxdeF3rowAKCYYQndxS0FL27t32TM+OCyfoOl5+eY8=; h=Date:Subject:To:References:From:In-Reply-To; b=lA7UFH4aPwYt2TtkLbS032T92/prKiYMrXO2y5AEe7nffvNWh6wMqMA+N6zq1x2yI /i9BOSqVlYdpdSWDxY/ni2jjLnbcd4RE6DWj4NGQL7HcEzFdtZ9udtkZr9xyD1MQyE 1iTv4Rih3aKDEIfqtxyVC1bW1kNwgXqcwu8K8h0JVCxeaJLZ4xRQaEyHoHCPqn3QfG ADBm9ELj/7whw0lGCarF052L0MDfENL0Ita54iwwkq7rOQLbNi9GErTgn4wrMEwd1A 7v3jEtEhYGRaKLhDSOyfT7PdACsZbtTYmQ9I4CR67hoHCCgOoemSYbuWrr5nn4FCbf PXgz2D/jKz2fQ== Message-ID: <604cd4be-55bc-480a-9c2e-0ad9faec2945@HIDDEN> Date: Wed, 2 Oct 2024 16:50:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#73598: Acknowledgement (bug in sed Invalid preceding regular expression) Content-Language: nl To: 73598 <at> debbugs.gnu.org References: <3fed214b-d2d2-443b-be3d-7ff868f6969e@HIDDEN> <handler.73598.B.172787399426728.ack <at> debbugs.gnu.org> From: Peter Smulders <p.j.m.smulders@HIDDEN> In-Reply-To: <handler.73598.B.172787399426728.ack <at> debbugs.gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfNs1DzT43JW0475V9GKIub2NxlwKwoYBhzgE2zjRUFBImbGp0rd0/t28ECeTZ0nSqvzvzw6rif4H12C9YLUdoch5UZOm2gYDpeinIzTCd+gr3qXAmXge Jh2mCWGUx4SZQrtAel9AE+MPQhKYk5+P+AFUm4wu8Fl+ru5RYvnG8ltCqTMHIYqL18u9Myfb/eVHzvKquxaAn6n/ltc8MO0NYx8= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 73598 X-Mailman-Approved-At: Wed, 02 Oct 2024 11:20:22 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) I think I know already what is the matter. For to work properly double escapes are needed, i.e. echo ****some string | sed s/\\*\\*\\*\\*// But I still find it strange ... On 2-10-2024 15:00, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-sed@HIDDEN > > If you wish to submit further information on this problem, please > send it to 73598 <at> debbugs.gnu.org. > > Please do not send mail to help-debbugs@HIDDEN unless you wish > to report a problem with the Bug-tracking system. >
bug-sed@HIDDEN
:bug#73598
; Package sed
.
Full text available.Received: (at submit) by debbugs.gnu.org; 2 Oct 2024 13:23:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 09:23:20 2024 Received: from localhost ([127.0.0.1]:56877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1svzK4-0008Im-2s for submit <at> debbugs.gnu.org; Wed, 02 Oct 2024 09:23:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:50398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dave_br@HIDDEN>) id 1svzK1-0008IX-Na for submit <at> debbugs.gnu.org; Wed, 02 Oct 2024 09:23:18 -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 <dave_br@HIDDEN>) id 1svzJx-0004qs-8H for bug-sed@HIDDEN; Wed, 02 Oct 2024 09:23:13 -0400 Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dave_br@HIDDEN>) id 1svzJv-0007WA-4D for bug-sed@HIDDEN; Wed, 02 Oct 2024 09:23:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1727875387; x=1728480187; i=dave_br@HIDDEN; bh=1beqPfVFyGTTi1YIDza832aBNS84M9PcnGJU7L03QJE=; h=X-UI-Sender-Class:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=YMg/V1vA8iZKT9osgd6fjYgvwM/jLaDWqsYvtv9hFpW87Mcxv4XziTtqH+9UaGTe LrsKNoaIcysWhr2IIZ6cZ9j7oy0zrbobT6oVAQrPosnfXKSKZCiCK/BOU9rSQTuY7 kKcyC3dtxu1FpFCOQrjHhyhrmeWTaW+Nj7cLOsmhkdUccO/uEwLyIOUkdtibCz7qk h8QJTcMEuYBiKsbXK/nbylqZPI/CIGPjlkjAmwoJKR4aQMF20EwhsJuknyT28Cx8W w/2mW12S6ZWSPcoXca5pivoZHERjr9UXxq/qAjl6LrfIYjCvHi3k2aji3OiY/FETF rxajpgg1RbL0BsPPDg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from swedishchef ([82.52.31.91]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N3se2-1rwUnb19iS-013rf9 for <bug-sed@HIDDEN>; Wed, 02 Oct 2024 15:23:07 +0200 Date: Wed, 2 Oct 2024 15:23:03 +0200 From: Davide Brini <dave_br@HIDDEN> To: bug-sed@HIDDEN Subject: Re: bug#73598: bug in sed Invalid preceding regular expression Message-ID: <20241002152303.76dd9b9b@swedishchef> In-Reply-To: <3fed214b-d2d2-443b-be3d-7ff868f6969e@HIDDEN> References: <3fed214b-d2d2-443b-be3d-7ff868f6969e@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:yZuYc8ERZhtH9qBfHCfQ0yqtZhbcgOmUG7RsQ8ZE+z8BVbBXiR9 NAgKdX/MQhzjU8cg0GACIdvyESjCMO8QMD/BXDFw6OuwwliBDGhZ2xX+CNQ7+hjFIeWAjWN z75NOV7fC3QEbK3kVAI4cHB+ZbILhfpIP/QOFzBVoIeFdFVT/yUMvAdjEVvqsu8CJnW+uS9 YmTu6CCAmREy+G0BXir3g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:rVBGFVU3zZU=;hQIhyD8lu4AKF3yozd1a3YcgeQc FOcZDiWQT33cncfiEa/oiq5KEadcvtAk50GeOY8gloF/apzWFUYeJVaZORLfP3lRAiJV9U3/l Q4B9SfFnp/Rrle0vccWnAC5Zkc3sYPiwwxb57BgVg2OCWIGJhvt38jPnVxorpvrdqsEorSUjr gLT0Bn9eKuUAHK93sRI59UTtR4ge2+mBocVQA7fS9LY3dcIaW3gbIefiOYfGK42q4ihskKJts oTJZ+Wbma7PuOm3Bo0VDbjKtf7Hi1gJ8gfKlfy5rD2O4Kios5aQITsKnVhQM8n6VxALHBTJfH huY9BWQehYFakDQ0SU7DuKgGiaDDgkoyEODMwB3qArVivd03y8a0y6WDZ8yv49a2+fUO0AY96 Nvj6BJ9kMzykae0J6eG38h0vTITf1Hp55Pd3uoV2KbC0IlH0iY8f20KpmTWg4oZVvFrYXfmbK Lk97TQ2tyfbHncC1u9z6c4tMM/IkFTIwRzBvwCP6qcrYvA+Jg8aG17pm+P9aZvjdNJ/O3NLWm qrAAD3QuHY4P5BTaPvRSTuEoIhCruxyMYa1bXPBrR7MikACDvdvy4OeMgjEFjkXKBiYCSYQpY 5vHNgZ5htlIDFU6PE0JB5sg2aK4URneJl4l1BvHkRr0aw00p5Xu0u7g5IglgoGiT78rhSZ+iq Mwh+b8WVzrtnrlrm4zO+uPHmH9r6mVv+aUZioDwaT87NywlXjrUuodTGm2zyUKV7IQWc26YXf m4eLJTFIDkfemHgMpQIXpvf3QdAAcdB0oMI3s7nUjoK9hsHzmh14KtN/ICbeVGreWMJOc8fp5 W31PpE6zOLg3xh7fv3Hrv62A== Received-SPF: pass client-ip=212.227.15.15; envelope-from=dave_br@HIDDEN; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) On Wed, 2 Oct 2024 11:59:09 +0200, Peter Smulders <p.j.m.smulders@HIDDEN> wrote: > I expect the command line > > echo ****some string | sed s/\*\*\*\*// > > to strip the *'s and result in > > some string > > However I get the error message: > > sed: -e expression #1, char 8: Invalid preceding regular expression > > ----- > > When the sed command is taken from a file it works as expected: > > $ echo ****some string | sed -f script > some string > > where file script consists of the line > s/\*\*\*\*// > In the command line version, the shell is stripping away your backslashes. So you want: echo ****some string | sed 's/\*\*\*\*//' =2D- D.
bug-sed@HIDDEN
:bug#73598
; Package sed
.
Full text available.Received: (at submit) by debbugs.gnu.org; 2 Oct 2024 12:59:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 02 08:59:54 2024 Received: from localhost ([127.0.0.1]:56861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1svyxN-0006x2-EI for submit <at> debbugs.gnu.org; Wed, 02 Oct 2024 08:59:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:52290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <p.j.m.smulders@HIDDEN>) id 1svw8d-0005Mi-Tj for submit <at> debbugs.gnu.org; Wed, 02 Oct 2024 05:59:20 -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 <p.j.m.smulders@HIDDEN>) id 1svw8d-00044M-8f for bug-sed@HIDDEN; Wed, 02 Oct 2024 05:59:19 -0400 Received: from csmtpq2-prd-nl1-vfz.edge.unified.services ([84.116.50.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <p.j.m.smulders@HIDDEN>) id 1svw8b-0005wd-7u for bug-sed@HIDDEN; Wed, 02 Oct 2024 05:59:19 -0400 Received: from csmtp5-prd-nl1-vfz.nl1.unified.services ([100.107.80.68] helo=csmtp5-prd-nl1-vfz.edge.unified.services) by csmtpq2-prd-nl1-vfz.edge.unified.services with esmtp (Exim 4.93) (envelope-from <p.j.m.smulders@HIDDEN>) id 1svw8U-00AXCF-08 for bug-sed@HIDDEN; Wed, 02 Oct 2024 11:59:10 +0200 Received: from [192.168.178.136] ([84.27.25.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by csmtp5-prd-nl1-vfz.edge.unified.services with ESMTPSA id vw8TsgvSO4gHJvw8TsaEnP; Wed, 02 Oct 2024 11:59:09 +0200 X-Env-Mailfrom: p.j.m.smulders@HIDDEN X-Env-Rcptto: bug-sed@HIDDEN X-SourceIP: 84.27.25.183 X-CNFS-Analysis: v=2.4 cv=XPJiShhE c=1 sm=1 tr=0 ts=66fd196d cx=a_exe a=MosmSTqDC2BNoylIkaMlGg==:117 a=MosmSTqDC2BNoylIkaMlGg==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=7_Dx1IGeYyKHmItFmuwA:9 a=QEXdDO2ut3YA:10 a=dI9p-avQWAUA:10 a=Qa5mF1pL4RGubZTfelf8:22 X-Authenticated-Sender: p.j.m.smulders@HIDDEN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=home.nl; s=202002corplgsmtpnl; t=1727863149; bh=54QzIq3Q9v0cFK+iEky/p+BvylR8ughPWW7NbiWumfk=; h=Date:To:From:Subject; b=D1ydJ99LCyvuIt8a07XSY77JAzb9ptiAMWDstOKPyvhzhlVY07cn6ozQRFtbt4aek 3YquPIVHVX+sPjijWtVewKGH77r2LxH2o8gr53Q1V3U6qTe9o5EgkcxBxRzmdFk7B9 ZUFxkUne5RQwcvUN+TsIK4fpA8EXe8CNwoAUImtHjNbhmeRAZV9skqRVCxxxPU8E37 4UZ1jd93AhI925+zBzDvqFy2V7bQ/9mhmYy38v+DgwUjQWU5qdqTFLVWTTWhTP/Q7g V8xsGHwGqzM8G5evKtBzIRpTMT4TLyIgTkLHiv/xDaYAyoSWg47qXE1sS2s4kHIjxs QNkrQFeKt1NjQ== Message-ID: <3fed214b-d2d2-443b-be3d-7ff868f6969e@HIDDEN> Date: Wed, 2 Oct 2024 11:59:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: nl To: bug-sed@HIDDEN From: Peter Smulders <p.j.m.smulders@HIDDEN> Subject: bug in sed Invalid preceding regular expression Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfMNlmAeD0Tz25eAjpOwKCnEMfVn0uT00RP6dukNxeGHNTfRSwxMdaQQgfqXitJB+H4sETMb7ppgMAuyHm9sOSNj8FyzFbnpsWC18TpLr2QtU6aqIcHGQ KlFQYtgbBIVHJ2k7bILZ+FxNyiRzRH9UqwU2xAg54B3B4WgPgSwvu/sokOKxE47N0Y56pNlt4plG7g== Received-SPF: pass client-ip=84.116.50.17; envelope-from=p.j.m.smulders@HIDDEN; helo=csmtpq2-prd-nl1-vfz.edge.unified.services 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 02 Oct 2024 08:59:52 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) I expect the command line echo ****some string | sed s/\*\*\*\*// to strip the *'s and result in some string However I get the error message: sed: -e expression #1, char 8: Invalid preceding regular expression ----- When the sed command is taken from a file it works as expected: $ echo ****some string | sed -f script some string where file script consists of the line s/\*\*\*\*// --- The problem shows in: $ sed --version sed (GNU sed) 4.9 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://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, Paolo Bonzini, Jim Meyering, and Assaf Gordon. This sed program was built without SELinux support. GNU sed home page: <https://www.gnu.org/software/sed/>. General help using GNU software: <https://www.gnu.org/gethelp/>. E-mail bug reports to: <bug-sed@HIDDEN>. ---- an older version does not have this problem ( GNU sed version 3.02 ) best regards, Peter Smulders
Peter Smulders <p.j.m.smulders@HIDDEN>
:bug-sed@HIDDEN
.
Full text available.bug-sed@HIDDEN
:bug#73598
; Package sed
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.