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
0000731 [1003.1(2013)/Issue7+TC1] Shell and Utilities Comment Clarification Requested 2013-08-09 19:46 2019-06-10 08:55
Reporter fjanda View Status public  
Assigned To
Priority normal Resolution Accepted As Marked  
Status Closed  
Name Felix Janda
Organization
User Reference
Section split
Page Number 3217
Line Number 107808
Interp Status Approved
Final Accepted Text See Note: 0001718.
Summary 0000731: split: Behavior when input file is empty
Description The desciption of the split utility does not specifically specify whether split shall create an empty file or do nothing when its input file is empty. The first sentence of the desciption

 The split utility shall read an input file and write one or more output files.

seems to indicate that split will create exactly one empty output file in this case.


On the other hand I have not found any implementation with this behavior.
Desired Action Clarify the behavior of split in the case of an empty input file.
Tags tc2-2008
Attached Files

- Relationships

-  Notes
(0001718)
Don Cragun (manager)
2013-08-15 15:23
edited on: 2013-08-15 15:34

Interpretation response
------------------------
The standard states that split produces one or more output files, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.

Rationale:
-------------
When the input is an empty file, historical practice has been to produce no output files. We see no reason why conforming implementations should be required to created an empty output file in this case.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
In the NAME section, change:
     "split files into pieces"
to:
     "split a file into pieces"

In the SYNOPSIS section, change "[file[name]]" on both lines to "[file [name]]".


Change "one or more" in the DESCRIPTION section on P3217, L107808
to "zero or more",

Add to the end of the paragraph on P3217, L107821:
    "If the input is an empty file, no output file shall be created and this shall
     not be considered to be an error."


(0001801)
ajosey (manager)
2013-09-06 04:52

Interpretation Proposed 6 Sep 2013
(0001899)
ajosey (manager)
2013-10-14 13:08

Interpretation approved 14 October 2013

- Issue History
Date Modified Username Field Change
2013-08-09 19:46 fjanda New Issue
2013-08-09 19:46 fjanda Name => Felix Janda
2013-08-09 19:46 fjanda Section => split
2013-08-09 19:46 fjanda Page Number => *
2013-08-09 19:46 fjanda Line Number => *
2013-08-15 15:23 Don Cragun Page Number * => 3217
2013-08-15 15:23 Don Cragun Line Number * => 107808
2013-08-15 15:23 Don Cragun Interp Status => Pending
2013-08-15 15:23 Don Cragun Note Added: 0001718
2013-08-15 15:23 Don Cragun Status New => Interpretation Required
2013-08-15 15:23 Don Cragun Resolution Open => Accepted As Marked
2013-08-15 15:28 Don Cragun Note Edited: 0001718
2013-08-15 15:30 Don Cragun Note Edited: 0001718
2013-08-15 15:31 Don Cragun Final Accepted Text => See Note: 0001718.
2013-08-15 15:31 Don Cragun Tag Attached: tc2-2008
2013-08-15 15:32 Don Cragun Note Edited: 0001718
2013-08-15 15:34 Don Cragun Note Edited: 0001718
2013-09-06 04:52 ajosey Interp Status Pending => Proposed
2013-09-06 04:52 ajosey Note Added: 0001801
2013-10-14 13:08 ajosey Interp Status Proposed => Approved
2013-10-14 13:08 ajosey Note Added: 0001899
2019-06-10 08:55 agadmin Status Interpretation Required => Closed


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