From nobody Wed Dec 25 20:52:37 2024 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YJP8k2tBRz5hwc2 for ; Wed, 25 Dec 2024 20:52:38 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YJP8j6PZbz4tq5 for ; Wed, 25 Dec 2024 20:52:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735159957; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5xnGbqva6TpYS9Vdyypnw/XDRWn01MX40eoQCvVFYXA=; b=bOX2zkfbWx69LRomDvlov4tSvR9VUA1U/MJPIZRPyjMhbxH2Kx9oDhHaoqUnLEo/CZ9gMp IRY6jRNnS1X2svQRWe10Jm7miMKpHTdpBXZTbPMkzbSFlRRPBrH5bbotRscJ6UpsIFYisa iP9oVip0aDjAiayp9aV5pAVdpUsY1qcmHOaYX6I8yVxYnTwg8O6iQutUW/kGKJaKgTUlrA CZ9pm59fYpq0bOHwylKotJW41SwNfQYVqHjl/hWdETcgA2RzW9teEU84siSnb4Pm/ME2QG R1fKYFwBCEmn63tHPJLAOiQnlHMRd+15jKjqhoSbLSE2wa9IVcMpBRomXSDLFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735159957; a=rsa-sha256; cv=none; b=iBQ0so33/9UXFKNIgajsoTymdUcuCZhbW1AQ3BWnDXXmKdGIVq7XPbAgxlnAZ6f0GOXqt2 f6sBs5anHrwZyWWv1yZ3Lbhzm/grp1Pd9CX+21cAjz7aoHdH23X4dPVn/fMj6Af35vUL+D QW+EBQcamWDjYkPECionrFJUq+IejaM6fU3PhZlAXsitJWCAVrOy/Et2HhlYSslHMyGMOA cakN9XfgJCXKk1z1gnESwI0on+MXuj5aKmSc0irFbvrsToJ4eLrM8Py515sSYnLf0I+ECj SHa6XJWib0rWejTYbCopJYqM83ZWwqi2KOkZvVH7u6JrBOsCOmglDj4gxIXEWQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4YJP8j61Z1zPwb for ; Wed, 25 Dec 2024 20:52:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BPKqbes010229 for ; Wed, 25 Dec 2024 20:52:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BPKqbju010228 for doc@FreeBSD.org; Wed, 25 Dec 2024 20:52:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 283617] awk(1): fix description of the getline function Date: Wed, 25 Dec 2024 20:52:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: naddy@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@FreeBSD.org MIME-Version: 1.0 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