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
0000969 [1003.1(2013)/Issue7+TC1] Shell and Utilities Editorial Clarification Requested 2015-07-15 15:41 2019-06-10 08:54
Reporter joerg View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Closed  
Name Jörg Schilling
Organization
User Reference
Section diff
Page Number 2628
Line Number 85313-85318
Interp Status Approved
Final Accepted Text See Note: 0002765.
Summary 0000969: diff output format for -u/-U is too restrictive
Description The diff definition requires to use

      %1d", <beginning line number>

if only one line is affected with -u/-U , but patch also accepts "%1d,1".

Desired Action Permit alternate "%d,1" output.

At line 85313 change:

      Each <range> field shall be of the form:
      "%1d", <beginning line number>
      if the range contains exactly one line, and:
      "%1d,%1d", <beginning line number>, <number of lines>
      otherwise. If a range is empty, its beginning line number shall be the number of the line just
      before the range, or 0 if the empty range starts the file.

to:

      Each <range> field shall be of the form:
      "%1d", <beginning line number>
      or
      "%1d,1", <beginning line number>
      if the range contains exactly one line, and:
      "%1d,%1d", <beginning line number>, <number of lines>
      otherwise. If a range is empty, its beginning line number shall be the number of the line just
      before the range, or 0 if the empty range starts the file.

Tags tc2-2008
Attached Files

- Relationships

-  Notes
(0002765)
Don Cragun (manager)
2015-07-16 16:29

Interpretation response
------------------------

The standard does not speak to this issue, and as such no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor.

Rationale:
-------------
The standard only allows one form for specifying single line changes in unified diff output, but existing practice uses two forms.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
Make the change specified in the Desired Action.
(0002767)
ajosey (manager)
2015-07-17 07:58

Interpretation Proposed: 17 July 2015
(0002815)
ajosey (manager)
2015-09-07 11:32

Interpretation approved: 7 Sep 2015

- Issue History
Date Modified Username Field Change
2015-07-15 15:41 joerg New Issue
2015-07-15 15:41 joerg Name => Jörg Schilling
2015-07-15 15:41 joerg Section => diff
2015-07-15 15:41 joerg Page Number => 2628
2015-07-15 15:41 joerg Line Number => 85313-85318
2015-07-16 16:29 Don Cragun Interp Status => Pending
2015-07-16 16:29 Don Cragun Note Added: 0002765
2015-07-16 16:29 Don Cragun Status New => Interpretation Required
2015-07-16 16:29 Don Cragun Resolution Open => Accepted
2015-07-16 16:30 Don Cragun Final Accepted Text => See Note: 0002765.
2015-07-16 16:30 Don Cragun Tag Attached: tc2-2008
2015-07-17 07:58 ajosey Interp Status Pending => Proposed
2015-07-17 07:58 ajosey Note Added: 0002767
2015-09-07 11:32 ajosey Interp Status Proposed => Approved
2015-09-07 11:32 ajosey Note Added: 0002815
2019-06-10 08:54 agadmin Status Interpretation Required => Closed


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