View Issue Details

IDProjectCategoryView StatusLast Update
00019881003.1(2024)/Issue8Shell and Utilitiespublic2026-06-22 18:17
Reporterstephane Assigned To 
PrioritynormalSeverityObjectionTypeError
Status NewResolutionOpen 
NameStephane Chazelas
Organization
User Reference
Sectionawk utility
Page Number2619
Line Number85781 85782
Interp Status
Final Accepted Text
Summary0001988: Incorrect reference to "whole input record" for $0
DescriptionIn

> The print statement shall write the value of each expression
> argument onto the indicated output stream separated by the
> current output field separator (see variable OFS above), and
> terminated by the output record separator (see variable ORS
> above). All expression arguments shall be taken as strings,
> being converted if necessary; this conversion shall be as
> described in Expressions in awk, with the exception that the
> printf format in OFMT shall be used instead of the value in
> CONVFMT. An empty expression list shall stand for the whole
> input record ($0).

That late sentence is erroneous and misleading as $0's value is only the input record after that record has been read in and before it has been modified.
Desired ActionChange:

> An empty expression list shall stand for the whole input record ($0).

to:

> An empty expression list shall stand for $0

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-06-22 18:17 stephane New Issue