A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1821 ====================================================================== Reported By: mortoneccc Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1821 Category: Shell and Utilities Type: Enhancement Request Severity: Comment Priority: normal Status: New Name: Ed Morton Organization: User Reference: Section: awk Page Number: 0 Line Number: 0 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-03-14 11:42 UTC Last Modified: 2024-03-14 12:03 UTC ====================================================================== Summary: Define the values of $0, $1, etc. in the END section ======================================================================
---------------------------------------------------------------------- (0006719) geoffclare (manager) - 2024-03-14 12:03 https://austingroupbugs.net/view.php?id=1821#c6719 ---------------------------------------------------------------------- The suggested wording doesn't work for the NF=0 case. It needs to be something more like: <blockquote>Inside an <b>END</b> action, $0 and, if <b>NF</b> is greater than 0, the fields $1 through $<b>NF</b> shall retain the values they had for the last record read.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2024-03-14 11:42 mortoneccc New Issue 2024-03-14 11:42 mortoneccc Name => Ed Morton 2024-03-14 11:42 mortoneccc Section => awk 2024-03-14 11:42 mortoneccc Page Number => 0 2024-03-14 11:42 mortoneccc Line Number => 0 2024-03-14 12:03 geoffclare Note Added: 0006719 ======================================================================
