View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001822 | 1003.1(2016/18)/Issue7+TC2 | Shell and Utilities | public | 2024-03-14 11:50 | 2024-05-20 15:09 |
Reporter | mortoneccc | Assigned To | |||
Priority | normal | Severity | Comment | Type | Enhancement Request |
Status | Resolved | Resolution | Accepted As Marked | ||
Name | Ed Morton | ||||
Organization | |||||
User Reference | |||||
Section | awk | ||||
Page Number | 0 | ||||
Line Number | 0 | ||||
Interp Status | --- | ||||
Final Accepted Text | 0001822:0006789 | ||||
Summary | 0001822: Define splitting using a null field separator | ||||
Description | In most modern awks when splitting a string into fields using a null field separator, either splitting $0 into $1, etc. using FS or calling split(string,array,""), the string is split into characters but that behavior is currently undefined in the spec with the consequence that the large number of awk scripts that rely on this functionality are actually relying on undefined behavior and there is no useful alternative behavior for splitting when the separator is null. | ||||
Desired Action | Update the spec to change this: --- If FS is a null string, the behavior is unspecified. --- to this or similar: --- If FS is a null string, the input shall be split into individual characters --- | ||||
Tags | issue9 |
|
Page and line numbers are for issue 8 draft 4.1. On P2617, L85671 section awk (EXTENDED DESCRIPTION) change: If FS is a null string, the behavior is unspecified. to: If FS is a null string, each character shall become a separate field. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-03-14 11:50 | mortoneccc | New Issue | |
2024-03-14 11:50 | mortoneccc | Name | => Ed Morton |
2024-03-14 11:50 | mortoneccc | Section | => awk |
2024-03-14 11:50 | mortoneccc | Page Number | => 0 |
2024-03-14 11:50 | mortoneccc | Line Number | => 0 |
2024-05-20 15:08 | geoffclare | Note Added: 0006789 | |
2024-05-20 15:09 | geoffclare | Interp Status | => --- |
2024-05-20 15:09 | geoffclare | Final Accepted Text | => 0001822:0006789 |
2024-05-20 15:09 | geoffclare | Status | New => Resolved |
2024-05-20 15:09 | geoffclare | Resolution | Open => Accepted As Marked |
2024-05-20 15:09 | geoffclare | Tag Attached: issue9 |