Anonymous | Login | 2024-09-07 14:02 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Type | Date Submitted | Last Update | |||||||
0001821 | [1003.1(2016/18)/Issue7+TC2] Shell and Utilities | Comment | Enhancement Request | 2024-03-14 11:42 | 2024-07-24 14:34 | |||||||
Reporter | mortoneccc | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | Accepted As Marked | |||||||||
Status | Interpretation Required | |||||||||||
Name | Ed Morton | |||||||||||
Organization | ||||||||||||
User Reference | ||||||||||||
Section | awk | |||||||||||
Page Number | 0 | |||||||||||
Line Number | 0 | |||||||||||
Interp Status | Approved | |||||||||||
Final Accepted Text | Note: 0006781 | |||||||||||
Summary | 0001821: Define the values of $0, $1, etc. in the END section | |||||||||||
Description |
The value of NF, i.e. the number of fields read, in the END section is defined in the standard as: --- Inside an END action, NF shall retain the value it had for the last record read --- but the value of $0, $1, and the other fields is not defined. Most modern awks will have them retain the value of the last record read, just like NF, but it is currently undefined behavior which seems like it's a simple omission from the spec. |
|||||||||||
Desired Action |
Update the spec to say: --- Inside an END action, $0, $1, and the other fields shall retain the values they had for the last record read --- |
|||||||||||
Tags | tc1-2024 | |||||||||||
Attached Files | ||||||||||||
|
Relationships | ||||||
|
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 | |
2024-05-16 15:31 | geoffclare | Note Added: 0006781 | |
2024-05-16 15:33 | geoffclare | Interp Status | => Pending |
2024-05-16 15:33 | geoffclare | Final Accepted Text | => Note: 0006781 |
2024-05-16 15:33 | geoffclare | Status | New => Interpretation Required |
2024-05-16 15:33 | geoffclare | Resolution | Open => Accepted As Marked |
2024-05-16 15:33 | geoffclare | Tag Attached: tc1-2024 | |
2024-05-16 15:54 | eblake | Relationship added | related to 0001823 |
2024-06-21 11:48 | agadmin | Interp Status | Pending => Proposed |
2024-06-21 11:48 | agadmin | Note Added: 0006829 | |
2024-07-24 14:34 | agadmin | Interp Status | Proposed => Approved |
2024-07-24 14:34 | agadmin | Note Added: 0006841 | |
2024-07-25 03:59 | agadmin | Note Edited: 0006841 |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |