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-03-14 11:50
Reporter mortoneccc View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Ed Morton
Organization
User Reference
Section awk
Page Number 0
Line Number 0
Interp Status ---
Final Accepted Text
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 No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- 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


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