View Issue Details

IDProjectCategoryView StatusLast Update
00018221003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-05-20 15:09
Reportermortoneccc Assigned To 
PrioritynormalSeverityCommentTypeEnhancement Request
Status ResolvedResolutionAccepted As Marked 
NameEd Morton
Organization
User Reference
Sectionawk
Page Number0
Line Number0
Interp Status---
Final Accepted Text0001822:0006789
Summary0001822: Define splitting using a null field separator
DescriptionIn 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 ActionUpdate 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
---
Tagsissue9

Activities

geoffclare

2024-05-20 15:08

manager   bugnote:0006789

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.

Issue History

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