From owner-dev-commits-src-branches@freebsd.org Sat Jul 10 17:12:47 2021 Return-Path: Delivered-To: dev-commits-src-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 810E76579E1; Sat, 10 Jul 2021 17:12:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GMc6R1Z0Zz4V7J; Sat, 10 Jul 2021 17:12:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1E09A3AD5; Sat, 10 Jul 2021 17:12:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 16AHClDS088195; Sat, 10 Jul 2021 17:12:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16AHClDo088194; Sat, 10 Jul 2021 17:12:47 GMT (envelope-from git) Date: Sat, 10 Jul 2021 17:12:47 GMT Message-Id: <202107101712.16AHClDo088194@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 421eebb4f8a3 - stable/12 - Update awk(1) manual to state an exception to egrep(1)-like RE syntax MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 421eebb4f8a346e7f91a5fde31e67b4193f289ff Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the stable branches of the FreeBSD src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2021 17:12:47 -0000 The branch stable/12 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=421eebb4f8a346e7f91a5fde31e67b4193f289ff commit 421eebb4f8a346e7f91a5fde31e67b4193f289ff Author: Devin Teske AuthorDate: 2018-11-02 23:03:40 +0000 Commit: Warner Losh CommitDate: 2021-07-10 17:11:14 +0000 Update awk(1) manual to state an exception to egrep(1)-like RE syntax Reviewed by: imp, jmg MFC after: 3 days Sponsored by: Smule, Inc. Differential Revision: https://reviews.freebsd.org/D17739 (cherry picked from commit e0ff4751f0a9757f0bfc776b5da5421f6294daf8) --- contrib/one-true-awk/awk.1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contrib/one-true-awk/awk.1 b/contrib/one-true-awk/awk.1 index b0d243b495cc..b2c36558fc83 100644 --- a/contrib/one-true-awk/awk.1 +++ b/contrib/one-true-awk/awk.1 @@ -352,9 +352,13 @@ Patterns are arbitrary Boolean combinations of regular expressions and relational expressions. Regular expressions are as in -.IR egrep ; -see -.IR grep (1). +.IR egrep (1) +except numeric quantifiers are not supported beyond the basic +.B + +and +.B ? +for quantities \&\f(CW"0 or 1"\fP and \&\f(CW"1 or more"\fP +respectively. Isolated regular expressions in a pattern apply to the entire line. Regular expressions may also occur in