Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 2021 17:12:47 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 421eebb4f8a3 - stable/12 - Update awk(1) manual to state an exception to egrep(1)-like RE syntax
Message-ID:  <202107101712.16AHClDo088194@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=421eebb4f8a346e7f91a5fde31e67b4193f289ff

commit 421eebb4f8a346e7f91a5fde31e67b4193f289ff
Author:     Devin Teske <dteske@FreeBSD.org>
AuthorDate: 2018-11-02 23:03:40 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107101712.16AHClDo088194>