Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2024 20:52:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 283617] awk(1): fix description of the getline function
Message-ID:  <bug-283617-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283617

            Bug ID: 283617
           Summary: awk(1): fix description of the getline function
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: naddy@FreeBSD.org
                CC: doc@FreeBSD.org

Created attachment 256138
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D256138&action=
=3Dedit
awk(1): fix description of the getline function

In awk.1, the description of the various forms of the getline function is
confused. _The AWK Programming Language_, second edition, sums it up in this
table (p. 204):

       TABLE A-10. GETLINE FUNCTION
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
        Expression    |      Sets
    ------------------+----------------
    getline           | $0, NF, NR, FNR
    getline var       | var, NR, FNR
    getline <file     | $0, NF
    getline var <file | var
    cmd | getline     | $0, NF
    cmd | getline var | var
    ------------------+----------------

Here's a minimal diff to rectify the description.

I already committed the same change on OpenBSD:
https://codeberg.org/OpenBSD/src/commit/52752bf43baeb94ac1e2ae081589f8ecc12=
4cdf0

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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