Received: (at submit) by debbugs.gnu.org; 28 Oct 2024 16:14:25 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 28 12:14:25 2024 Received: from localhost ([127.0.0.1]:54488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t5SNt-00086F-2u for submit <at> debbugs.gnu.org; Mon, 28 Oct 2024 12:14:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:33388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <minshall@HIDDEN>) id 1t5SNr-000865-Dd for submit <at> debbugs.gnu.org; Mon, 28 Oct 2024 12:14:24 -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 <minshall@HIDDEN>) id 1t5SNG-0007TE-Hg for bug-sed@HIDDEN; Mon, 28 Oct 2024 12:13:46 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.217.159.240] helo=smart-cyhyraeth.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <minshall@HIDDEN>) id 1t5SNE-0006TA-Oi for bug-sed@HIDDEN; Mon, 28 Oct 2024 12:13:46 -0400 Received: from realistic-brounie.authn-relay.a.mail.umich.edu (ip-10-0-73-217.us-east-2.compute.internal [10.0.73.217]) by smart-cyhyraeth.relay-egress.a.mail.umich.edu with ESMTPS id 671FB832.18583AAA.4B39A457.1362134; Mon, 28 Oct 2024 12:13:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-1; t=1730132018; bh=Ac2SCO0xw0LA0YDyIQ6BJvi4zm98OCZHF1Gg68Sfb2w=; h=From:To:Subject:Date; b=AGMYxMzMgBgFxBEkwrIBogc/0FNSjTVQbFSS1xwutr1XBpKlR0D4F9DVMf1Vr+YHZ 6hpBZceLIxK+Bsh1OxlicA3LSA/f6ZCHqyxWvE6XV6F9f2RHb/GAFgRnXdS/Y66Of4 2+aJybJu15mTiHIsbZAFdGeZrfNLSifYnKOkb59RW1JLFPJDRq8D6XyVqQ1PX7td/n //TalPJpAHLfZkF/b79itm6bu8tWBRmw8CNNCxSyvXsml+fDR3v4kYAJGiwPfjChra Mqmg/Izt79GyPZE29Io8EBYzrpABM6dbowsXFKPM22bMf2B+d4dg8Rq5NR4gsUsvK4 8CUyIIafzsGJQ== Authentication-Results: realistic-brounie.authn-relay.a.mail.umich.edu; iprev=pass policy.iprev=172.221.12.240 (syn-172-221-012-240.res.spectrum.com); auth=pass smtp.auth=minshall Received: from localhost (syn-172-221-012-240.res.spectrum.com [172.221.12.240]) by realistic-brounie.authn-relay.a.mail.umich.edu with ESMTPSA id 671FB831.214B7FF2.2CAC39B2.1953033; Mon, 28 Oct 2024 12:13:37 -0400 From: Greg Minshall <minshall@HIDDEN> To: bug-sed@HIDDEN Subject: documentation suggestion for caret X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 29.4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Oct 2024 09:13:34 -0700 Message-ID: <730625.1730132014@archlinux> Received-SPF: pass client-ip=18.217.159.240; envelope-from=minshall@HIDDEN; helo=smart-cyhyraeth.relay-egress.a.mail.umich.edu X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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 (--) in the info node ---- 5.3 Overview of basic regular expression syntax ---- in the discussion of caret (^), there is this (totally correct, afaik) text: ---- =E2=80=98^=E2=80=99 acts as a special character only at the beginning = of the regular expression or subexpression (that is, after =E2=80=98\(=E2=80= =99 or =E2=80=98\|=E2=80=99). Portable scripts should avoid =E2=80=98^=E2=80=99 at the beginning of a subexpression, though, as POSIX allows implementations that treat =E2=80=98^=E2=80=99 as an ordinary character in that context. ---- on the other hand, POSIX *EREs* allow caret in a subexpression. this isn't mentioned in the info node about EREs (which, as that node treats GNU sed EREs, probably needn't be). would it be worth mentioning it here? ---- =E2=80=98^=E2=80=99 acts as a special character only at the beginning = of the regular expression or subexpression (that is, after =E2=80=98\(=E2=80= =99 or =E2=80=98\|=E2=80=99). Portable scripts should avoid =E2=80=98^=E2=80=99 at the beginning of a subexpression, though, as POSIX allows implementations that treat =E2=80=98^=E2=80=99 as an ordinary character in that context. (Note t= hat POSIX *extended* regular expressions, as well as those of GNU sed, do allow '^' at the beginning of a subexpression.) ---- cheers.
Greg Minshall <minshall@HIDDEN>
:bug-sed@HIDDEN
.
Full text available.bug-sed@HIDDEN
:bug#74065
; Package sed
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.