View Issue Details

IDProjectCategoryView StatusLast Update
00002691003.1(2004)/Issue 6Shell and Utilitiespublic2015-06-18 16:37
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionsed
Page Number845
Line Number32735-32743
Interp StatusApproved
Final Accepted Text0000269:0000445
Summary0000269: sed addr in braces
Description The description of the { command verb begins:

     [2addr] {function
     function
     ...
     }
         Execute a list of sed functions only when the pattern space is
         selected.

 Since it refers to "function(s)", and the beginning of the EXTENDED
 DESCRIPTION says a function is a command verb followed by any
 applicable arguments, this means sed is not required to support the
 use of addresses within braces. It seems likely that this is
 unintentional, as such usage is common in applications (and
 applications which use it do not appear to be having any portability
 problems). For example:

     sed -n '1,/^$/{
                 /^Subject: /p
            }'

 To require sed to support the use of addresses within braces, the
 description should use the term "editing command" instead of "function".
Desired Action Change "function" to "editing command" throughout the description of
 the { command verb.
Tagstc1-2008

Relationships

related to 0000262 Closedajosey 1003.1(2008)/Issue 7 sed with multiple -e options 
has duplicate 0000264 Closedajosey 1003.1(2008)/Issue 7 sed addr in braces 
related to 0000944 Closed 1003.1(2013)/Issue7+TC1 sed: relax requirement for } to be preceded by newline 

Activities

geoffclare

2010-06-25 16:27

manager   bugnote:0000439

Copied from xcubug2.txt ERN 181

geoffclare

2010-06-26 18:06

manager   bugnote:0000445

Interpretation response
------------------------
The standard states the requirements for the { command verb in sed, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.

Rationale:
-------------
None.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
Make the change suggested by the submitter.

ajosey

2010-07-30 08:19

manager   bugnote:0000495

Comments/objections on the proposed interpretation are due by COB Aug 31 2010

Issue History

Date Modified Username Field Change
2010-06-25 16:27 geoffclare New Issue
2010-06-25 16:27 geoffclare Status New => Under Review
2010-06-25 16:27 geoffclare Assigned To => ajosey
2010-06-25 16:27 geoffclare Name => Geoff Clare
2010-06-25 16:27 geoffclare Organization => The Open Group
2010-06-25 16:27 geoffclare Section => sed
2010-06-25 16:27 geoffclare Page Number => 845
2010-06-25 16:27 geoffclare Line Number => 32735-32743
2010-06-25 16:27 geoffclare Interp Status => ---
2010-06-25 16:27 geoffclare Note Added: 0000439
2010-06-25 16:31 geoffclare Relationship added has duplicate 0000264
2010-06-26 18:06 geoffclare Note Added: 0000445
2010-06-26 18:07 geoffclare Interp Status --- => Pending
2010-06-26 18:07 geoffclare Final Accepted Text => 0000269:0000445
2010-06-26 18:07 geoffclare Status Under Review => Interpretation Required
2010-06-26 18:07 geoffclare Resolution Open => Accepted
2010-07-30 08:19 ajosey Interp Status Pending => Proposed
2010-07-30 08:19 ajosey Note Added: 0000495
2010-09-03 16:39 ajosey Interp Status Proposed => Approved
2010-09-08 19:43 Don Cragun Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Interpretation Required => Closed
2015-06-18 16:36 eblake Relationship added related to 0000944
2015-06-18 16:37 eblake Relationship added related to 0000262