Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001822 [1003.1(2016/18)/Issue7+TC2] Shell and Utilities Comment Enhancement Request 2024-03-14 11:50 2024-05-20 15:09
Reporter mortoneccc View Status public  
Assigned To
Priority normal Resolution Accepted As Marked  
Status Resolved  
Name Ed Morton
Organization
User Reference
Section awk
Page Number 0
Line Number 0
Interp Status ---
Final Accepted Text Note: 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
Attached Files

- Relationships

-  Notes
(0006789)
geoffclare (manager)
2024-05-20 15:08

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 => Note: 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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker