From unknown Wed Aug 20 05:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36202: Add example of how to write the two addresses Resent-From: Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Thu, 13 Jun 2019 23:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36202 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: 36202@debbugs.gnu.org X-Debbugs-Original-To: bug-sed@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156047001622470 (code B ref -1); Thu, 13 Jun 2019 23:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jun 2019 23:53:36 +0000 Received: from localhost ([127.0.0.1]:36314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZXE-0005qM-7X for submit@debbugs.gnu.org; Thu, 13 Jun 2019 19:53:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:42816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbZXC-0005qE-M9 for submit@debbugs.gnu.org; Thu, 13 Jun 2019 19:53:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35221) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbZXB-0003UZ-Ns for bug-sed@gnu.org; Thu, 13 Jun 2019 19:53:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_50,DATE_IN_PAST_12_24, RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbZXA-0004ij-P8 for bug-sed@gnu.org; Thu, 13 Jun 2019 19:53:33 -0400 Received: from brown.birch.relay.mailchannels.net ([23.83.209.23]:13851) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hbZXA-0004iT-Gk for bug-sed@gnu.org; Thu, 13 Jun 2019 19:53:32 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 68DDC342147 for ; Thu, 13 Jun 2019 23:53:30 +0000 (UTC) Received: from pdx1-sub0-mail-a88.g.dreamhost.com (100-96-38-146.trex.outbound.svc.cluster.local [100.96.38.146]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D15A0342062 for ; Thu, 13 Jun 2019 23:53:29 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a88.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Thu, 13 Jun 2019 23:53:30 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Oafish-Spill: 5503d3e65f94972d_1560470010234_173873020 X-MC-Loop-Signature: 1560470010234:2712308354 X-MC-Ingress-Time: 1560470010234 Received: from pdx1-sub0-mail-a88.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTP id 9113A8044F for ; Thu, 13 Jun 2019 16:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=dDYzrwDsJRR22QAVWv794XjM05w=; b=n8I3/JOtwuGDqorz z+H2+CE4tRS7rCezgQVIWFT10F8Au51eriLJ2/uuYdO8GSf7maXfZlrlboL4f4bP o8BHxD6yutKLzgvJulu14NIAnE4AfbhvflYnRkqgV0lD6i4G4u9dVTegRDfYxkAD fUXMLfvNsioQhGfdMcQ80z328PY= Received: from jidanni.org (1-170-85-47.dynamic-ip.hinet.net [1.170.85.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTPSA id 008778044E for ; Thu, 13 Jun 2019 16:53:23 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a88 From: Dan Jacobson Date: Thu, 13 Jun 2019 19:33:15 +0800 Message-ID: <8736kdg1ok.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeitddgvdeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttddtnecuhfhrohhmpeffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddrudejtddrkeehrdegjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedurddujedtrdekhedrgeejpdhrvghtuhhrnhdqphgrthhhpeffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhsvggusehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepud X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.23 X-Spam-Score: -0.6 (/) 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: -1.6 (-) (info "(sed) Other Commands") says many times As a GNU extension, this command accepts two addresses. You need to give an example of how to write the two addresses! You invent an extension, so only you know how to use it. One cannot look the usage up elsewhere. From unknown Wed Aug 20 05:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36202: Add example of how to write the two addresses Resent-From: Eric Blake Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Fri, 14 Jun 2019 02:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36202 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: Dan Jacobson , 36202@debbugs.gnu.org Received: via spool by 36202-submit@debbugs.gnu.org id=B36202.15604793404673 (code B ref 36202); Fri, 14 Jun 2019 02:29:01 +0000 Received: (at 36202) by debbugs.gnu.org; 14 Jun 2019 02:29:00 +0000 Received: from localhost ([127.0.0.1]:36357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbbxc-0001DI-Gv for submit@debbugs.gnu.org; Thu, 13 Jun 2019 22:29:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbbxa-0001D3-G2 for 36202@debbugs.gnu.org; Thu, 13 Jun 2019 22:28:59 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E40695944C; Fri, 14 Jun 2019 02:28:52 +0000 (UTC) Received: from [10.3.116.85] (ovpn-116-85.phx2.redhat.com [10.3.116.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8A1CF5ED44; Fri, 14 Jun 2019 02:28:51 +0000 (UTC) References: <8736kdg1ok.8.fsf@jidanni.org> From: Eric Blake Openpgp: preference=signencrypt Autocrypt: addr=eblake@redhat.com; keydata= xsBNBEvHyWwBCACw7DwsQIh0kAbUXyqhfiKAKOTVu6OiMGffw2w90Ggrp4bdVKmCaEXlrVLU xphBM8mb+wsFkU+pq9YR621WXo9REYVIl0FxKeQo9dyQBZ/XvmUMka4NOmHtFg74nvkpJFCD TUNzmqfcjdKhfFV0d7P/ixKQeZr2WP1xMcjmAQY5YvQ2lUoHP43m8TtpB1LkjyYBCodd+LkV GmCx2Bop1LSblbvbrOm2bKpZdBPjncRNob73eTpIXEutvEaHH72LzpzksfcKM+M18cyRH+nP sAd98xIbVjm3Jm4k4d5oQyE2HwOur+trk2EcxTgdp17QapuWPwMfhaNq3runaX7x34zhABEB AAHNHkVyaWMgQmxha2UgPGVibGFrZUByZWRoYXQuY29tPsLAegQTAQgAJAIbAwULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAUCS8fL9QIZAQAKCRCnoWtKJSdDahBHCACbl/5FGkUqJ89GAjeX RjpAeJtdKhujir0iS4CMSIng7fCiGZ0fNJCpL5RpViSo03Q7l37ss+No+dJI8KtAp6ID+PMz wTJe5Egtv/KGUKSDvOLYJ9WIIbftEObekP+GBpWP2+KbpADsc7EsNd70sYxExD3liwVJYqLc Rw7so1PEIFp+Ni9A1DrBR5NaJBnno2PHzHPTS9nmZVYm/4I32qkLXOcdX0XElO8VPDoVobG6 gELf4v/vIImdmxLh/w5WctUpBhWWIfQDvSOW2VZDOihm7pzhQodr3QP/GDLfpK6wI7exeu3P pfPtqwa06s1pae3ad13mZGzkBdNKs1HEm8x6zsBNBEvHyWwBCADGkMFzFjmmyqAEn5D+Mt4P zPdO8NatsDw8Qit3Rmzu+kUygxyYbz52ZO40WUu7EgQ5kDTOeRPnTOd7awWDQcl1gGBXgrkR pAlQ0l0ReO57Q0eglFydLMi5bkwYhfY+TwDPMh3aOP5qBXkm4qIYSsxb8A+i00P72AqFb9Q7 3weG/flxSPApLYQE5qWGSXjOkXJv42NGS6o6gd4RmD6Ap5e8ACo1lSMPfTpGzXlt4aRkBfvb NCfNsQikLZzFYDLbQgKBA33BDeV6vNJ9Cj0SgEGOkYyed4I6AbU0kIy1hHAm1r6+sAnEdIKj cHi3xWH/UPrZW5flM8Kqo14OTDkI9EtlABEBAAHCwF8EGAEIAAkFAkvHyWwCGwwACgkQp6Fr SiUnQ2q03wgAmRFGDeXzc58NX0NrDijUu0zx3Lns/qZ9VrkSWbNZBFjpWKaeL1fdVeE4TDGm I5mRRIsStjQzc2R9b+2VBUhlAqY1nAiBDv0Qnt+9cLiuEICeUwlyl42YdwpmY0ELcy5+u6wz mK/jxrYOpzXKDwLq5k4X+hmGuSNWWAN3gHiJqmJZPkhFPUIozZUCeEc76pS/IUN72NfprZmF Dp6/QDjDFtfS39bHSWXKVZUbqaMPqlj/z6Ugk027/3GUjHHr8WkeL1ezWepYDY7WSoXwfoAL 2UXYsMAr/uUncSKlfjvArhsej0S4zbqim2ZY6S8aRWw94J3bSvJR+Nwbs34GPTD4Pg== Organization: Red Hat, Inc. Message-ID: Date: Thu, 13 Jun 2019 21:28:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <8736kdg1ok.8.fsf@jidanni.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jomVFudSuXD671wxy2bgQjCZYErZLOlKh" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 14 Jun 2019 02:28:52 +0000 (UTC) X-Spam-Score: -5.0 (-----) 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: -6.0 (------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jomVFudSuXD671wxy2bgQjCZYErZLOlKh Content-Type: multipart/mixed; boundary="lCvw0IXu4DK7bIba5VdPSTdHE9rPzWTKj"; protected-headers="v1" From: Eric Blake To: Dan Jacobson , 36202@debbugs.gnu.org Message-ID: Subject: Re: bug#36202: Add example of how to write the two addresses References: <8736kdg1ok.8.fsf@jidanni.org> In-Reply-To: <8736kdg1ok.8.fsf@jidanni.org> --lCvw0IXu4DK7bIba5VdPSTdHE9rPzWTKj Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/13/19 6:33 AM, Dan Jacobson wrote: > (info "(sed) Other Commands") says many times >=20 > As a GNU extension, this command accepts two addresses. >=20 > You need to give an example of how to write the two addresses! >=20 > You invent an extension, so only you know how to use it. One cannot loo= k > the usage up elsewhere. info "(sed) Addresses overview" says: An address range is specified with two addresses separated by a comma (','). Addresses can be numeric, regular expressions, or a mix of both. The extension is not how to write two addresses (since POSIX already requires several commands such as 's' to do so), but that GNU sed extends the set of commands that take two addresses (where POSIX only requires the command to take 1). I think the information you are requesting is already present in the manual, so it is now a judgment call on whether it can be improved; are you volunteering to write a patch? --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --lCvw0IXu4DK7bIba5VdPSTdHE9rPzWTKj-- --jomVFudSuXD671wxy2bgQjCZYErZLOlKh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAl0DBmIACgkQp6FrSiUn Q2qCrQf/d8FudR7mCaC2fqHKvv69Oql7HR5x8snyaTLZxD6B4Gt1dFQLS0+qW/00 saHZckSur8ffbwWDpC4QAksMkqskQSXzPCL3dg8PvQBkejPO6CU/QNVip7MOrhtV SNjXECXZ5kwq0SGa0YhHq4nPvpTInEoFJ080154KYWSOsMxgVy5mHBAdH6wuUT3a +3cWvJo1PoGS00iub/vQrwYb3KhGBriOR2HQFKmuCgUkJO90/IUh8tm4A7VLmX/j FIFLltZwKTvld18FTIYJP0pnR7b9zbiGVsvjlihXnJ/ICrxuWZOoYIIeFfZLe7dI 65282nGsfI0n3OVb0JQ+zg8gXU+Heg== =wAnR -----END PGP SIGNATURE----- --jomVFudSuXD671wxy2bgQjCZYErZLOlKh-- From unknown Wed Aug 20 05:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36202: Add example of how to write the two addresses In-Reply-To: <8736kdg1ok.8.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Fri, 14 Jun 2019 02:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36202 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: Eric Blake Cc: 36202@debbugs.gnu.org Received: via spool by 36202-submit@debbugs.gnu.org id=B36202.15604799355882 (code B ref 36202); Fri, 14 Jun 2019 02:39:02 +0000 Received: (at 36202) by debbugs.gnu.org; 14 Jun 2019 02:38:55 +0000 Received: from localhost ([127.0.0.1]:36374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbc7C-0001Wn-T9 for submit@debbugs.gnu.org; Thu, 13 Jun 2019 22:38:55 -0400 Received: from cheetah.birch.relay.mailchannels.net ([23.83.209.34]:6885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbc7A-0001Wb-2v for 36202@debbugs.gnu.org; Thu, 13 Jun 2019 22:38:53 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DA4BA2C1309; Fri, 14 Jun 2019 02:38:50 +0000 (UTC) Received: from pdx1-sub0-mail-a87.g.dreamhost.com (100-96-89-88.trex.outbound.svc.cluster.local [100.96.89.88]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6CDFF2C1750; Fri, 14 Jun 2019 02:38:50 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a87.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Fri, 14 Jun 2019 02:38:50 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Supply-Hysterical: 674228567e5c61af_1560479930565_1424027451 X-MC-Loop-Signature: 1560479930565:3031479851 X-MC-Ingress-Time: 1560479930564 Received: from pdx1-sub0-mail-a87.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a87.g.dreamhost.com (Postfix) with ESMTP id F1EC87FF7E; Thu, 13 Jun 2019 19:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=Rqw2bPJnXFxSfJrewOa7WR1exwM=; b=WPHSxWZZv4Ukb fkDWHzYO5qh6PzcWB0fE7FF1IgfMaDwiGoA81m5A+DU26kXQ4fsuHFkb3AvJwWq0 A+avAjZd0Uom3d4/6MijkD5UlAoYTml4eGQXzi16xFYr4wDcB2+l77j9pJIeRu1w mcwjJSRKkWjBRJsv9ypOEL7VlftO0M= Received: from jidanni.org (1-170-85-47.dynamic-ip.hinet.net [1.170.85.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a87.g.dreamhost.com (Postfix) with ESMTPSA id 539937FF78; Thu, 13 Jun 2019 19:38:44 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a87 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <8736kdg1ok.8.fsf@jidanni.org> Date: Fri, 14 Jun 2019 10:38:41 +0800 Message-ID: <87d0jgq4b2.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrudeitddgiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddrudejtddrkeehrdegjeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpedurddujedtrdekhedrgeejpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeeivddtvdesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.1 (/) 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: -0.9 (/) Ah, so it was talking about range addresses all the time! OK, I recommend say so instead, and hyperlinking (info "(sed) Range Addresses") at each spot too. Thanks. From unknown Wed Aug 20 05:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36202: Add example of how to write the two addresses Resent-From: Assaf Gordon Original-Sender: "Debbugs-submit" Resent-CC: bug-sed@gnu.org Resent-Date: Sat, 29 Jun 2019 07:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36202 X-GNU-PR-Package: sed X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 36202@debbugs.gnu.org, Eric Blake Received: via spool by 36202-submit@debbugs.gnu.org id=B36202.156179467422266 (code B ref 36202); Sat, 29 Jun 2019 07:52:01 +0000 Received: (at 36202) by debbugs.gnu.org; 29 Jun 2019 07:51:14 +0000 Received: from localhost ([127.0.0.1]:43358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh88g-0005n1-FI for submit@debbugs.gnu.org; Sat, 29 Jun 2019 03:51:14 -0400 Received: from mail-pf1-f170.google.com ([209.85.210.170]:38117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh88a-0005mi-7j; Sat, 29 Jun 2019 03:51:10 -0400 Received: by mail-pf1-f170.google.com with SMTP id y15so4110156pfn.5; Sat, 29 Jun 2019 00:51:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=2gkXDWkFG96Wm9l2P+0fhTlCzlXw3JNhS4s52ErYkVA=; b=WubwLcPpQmC/NwuQbf2yZOm8SSZjTXPX4ZHl72hrlfcK91t3A4HjlmPrg8UXECTjwS Kv1Nb1dYOR9Ro5DhvT0ljWBMSL1UgHmZ7Gi1MuHKms1SYJK38C34vXRuOXDQu5r9cEPG XJshmaGTUN+8TM/jthiNcssGmsHWXidW4Pf7DIRt0dlT7t4Nxktg76Cj8sMVSAt+57Bw Ysp1rIVNAwiMXzeSfgg09Dfr9KCRNG1nAM3k5OrJvo08cFGwyxA5S7EJNL44jnN/RBXJ X6y4+Ul9KGs8nJXlWOGvi23lTB4XFRed4ENEjqVOHhKHhhvMep5bOIEge50NpMpw7AVc b1uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=2gkXDWkFG96Wm9l2P+0fhTlCzlXw3JNhS4s52ErYkVA=; b=emhi57GOYp+c6ywfQ4rLbYVbkuG61UOfktZws/XCrf2MjwYApgsPhA+UlaILt9oS/K nP8ISOoo7IvODSAQYRw5USFwsRRygrFp4sgu0s3qnUfdqV7RFiGup7VE7t+hfKavlcS4 3ngwOlOsOqQeufmBWV7NinyDQaWekV407tz1TPABsZvkqJBbMI9riJjjR+8myMJgYOq6 wqivegF02Wday1l91ccH9KRUo7BRat428b9V8rY26OPgUC1hNWZEo2Oyp6qcV+0Z8aY1 89c6GwkPFFgFaAWvwsocbG8+1HQRe/1XhSStAJIgXFi9/Y2eTKBm1hOmltUW5My8OCJE RdtQ== X-Gm-Message-State: APjAAAU1Sk6+gTNEG4lXLNaEPW89t/sFvq5F+LABeD5vUC1LKBbd4/Go 5Yx/S+FOVtqdMU9zD8dXpq6WBunq X-Google-Smtp-Source: APXvYqxrnVREwwNqRqvdX22gYboggGiWMlIeqGuADFKBsNCfobpDOYP39lijMvPu1byTlg1lOpbTnw== X-Received: by 2002:a63:480a:: with SMTP id v10mr13399196pga.60.1561794661986; Sat, 29 Jun 2019 00:51:01 -0700 (PDT) Received: from tomato (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id c69sm5708760pje.6.2019.06.29.00.51.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jun 2019 00:51:01 -0700 (PDT) Received: by tomato (Postfix, from userid 1000) id C134768099C; Sat, 29 Jun 2019 01:51:00 -0600 (MDT) Date: Sat, 29 Jun 2019 01:51:00 -0600 From: Assaf Gordon Message-ID: <20190629075100.GB29034@tomato.moose.housegordon.com> References: <8736kdg1ok.8.fsf@jidanni.org> <87d0jgq4b2.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87d0jgq4b2.8.fsf@jidanni.org> User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Score: 0.0 (/) 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: -1.0 (-) severity 36202 wishlist stop Hello, On Fri, Jun 14, 2019 at 10:38:41AM +0800, 積丹尼 Dan Jacobson wrote: > Ah, so it was talking about range addresses all the time! > OK, I recommend say so instead, and hyperlinking > (info "(sed) Range Addresses") at each spot too. Thanks. I'm marking this as "wishlist", until someone gets around to improving the manual (patches are always welcomed). -assaf From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 29 03:56:26 2019 Received: (at control) by debbugs.gnu.org; 29 Jun 2019 07:56:26 +0000 Received: from localhost ([127.0.0.1]:43368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh8Dh-0005ua-QG for submit@debbugs.gnu.org; Sat, 29 Jun 2019 03:56:26 -0400 Received: from mail-pl1-f169.google.com ([209.85.214.169]:34665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hh8Df-0005uG-In; Sat, 29 Jun 2019 03:56:24 -0400 Received: by mail-pl1-f169.google.com with SMTP id i2so4529855plt.1; Sat, 29 Jun 2019 00:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kBD3/N1gpEqU5oArg3vx7r12xn+ppAEhOZTLaNOHrWM=; b=qlWvBIk+aeIDkREzrtZUYTRDKBG+1ZuLXFXSyNQyXBo/K9SC7ptLTpvFXFrncvcEcf kwd+kUCtOEsu5pF3WsCT1LZ3dOoux5QTSraD21mu8Y6xIOADJSk5F+pLsURbsZSuo4ho 6J8oRUnwI3uTzjxCYyHDHQyya+yY72BUTeEyYecnsfoMWXZqN2ojgJtkwPD8a8l3bH0u nZRaAp982YkhHmeqi0QFQY4q0/3goBN34jW5cgKmKvoMnoiqIJj/ACyruDae0PxaVcId MCgajxzPfq6I4dHeDr8c09gbQRxSB5i24TYH//LNbxl65n0A6zOvwazY5dtt5IcgmgGD ClaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kBD3/N1gpEqU5oArg3vx7r12xn+ppAEhOZTLaNOHrWM=; b=hHU3JPlxfMla/89X4YQGxvJ3Iy16IsHY3iToMpg0zclaTqQwiEwI7IjhcIIPRPHkxj x9qN0mBjQGhVE1Q2rbATe+0bI6FyeXSgO4ns9igcNX72+3MU8oOmt146hQXUBpzWeaVD 1kl76uGFkymCWMdH0ojOv3ZBnj7L82Z1Hd+hpbkQFb1jADIJzT7XQg8t0b2lvqI6h1oj NnXoXhPErSvs4E8iVwIVtVTGSqTrQERv3AdAOcToM02RB/FBC3ia/tww8L7x5+Dn2ITS jY5fCNlpOIrwBJnF82n8a2V3NVxgKMsbTM9zLI50A/g6ZP54JCIdsULYqbwVYVLJH1I4 bWzw== X-Gm-Message-State: APjAAAVq7GLOZKucwAbmXztwSq3T2m9ruis9xsOvuIL8TLvt6CGyQ6tO Fl/JFfW1XPgIAb9vS5WqOE/SOpNk X-Google-Smtp-Source: APXvYqw4y1i1HcxgfAvZ0t5vORyXPffkpBB7TNu3UuZcQAA+9nuURTBrjrCt7BADvSkm8+6zzWqycA== X-Received: by 2002:a17:902:27e6:: with SMTP id i35mr16291788plg.190.1561794977435; Sat, 29 Jun 2019 00:56:17 -0700 (PDT) Received: from tomato (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id e11sm7641972pfm.35.2019.06.29.00.56.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jun 2019 00:56:16 -0700 (PDT) Received: by tomato (Postfix, from userid 1000) id 233E168099C; Sat, 29 Jun 2019 01:56:16 -0600 (MDT) Date: Sat, 29 Jun 2019 01:56:16 -0600 From: Assaf Gordon To: Dan Jacobson Subject: Re: bug#36204: unmatched `{' with r Message-ID: <20190629075616.GC29034@tomato.moose.housegordon.com> References: <87tvctelpe.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87tvctelpe.8.fsf@jidanni.org> User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 36204@debbugs.gnu.org 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: -1.0 (-) close 36202 stop Hello, On Thu, Jun 13, 2019 at 08:03:41PM +0800, Dan Jacobson wrote: > $ seq 3 | sed -n '2{s/2/X/ ; r /dev/null }' > sed: -e expression #1, char 0: unmatched `{' > $ seq 3 | sed -n '2{s/2/X/ ; r /dev/null ; }' > sed: -e expression #1, char 0: unmatched `{' > > If r is special and needs a terminating newline for some reason, then > please mention it on the r documentation, and show how to make the above > one liner work. > There is a section in the manual about writing multiple sed commands in a script [1], and a dedicate sub-section for commands that require a newline (including 'r') [2]. [1] https://www.gnu.org/software/sed/manual/sed.html#Multiple-commands-syntax [2] https://www.gnu.org/software/sed/manual/sed.html#Commands-Requiring-a-newline As such, I'm closing this item, but discussion can continue by replying to this thread (concrete patches to improve the manual are always welcomed). regards, - assaf