View Issue Details

IDProjectCategoryView StatusLast Update
00002661003.1(2004)/Issue 6Shell and Utilitiespublic2013-04-16 13:06
ReporterDon Cragun Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted As Marked 
NameDon Cragun
Organization
User Reference
Sectiontime
Page Number917
Line Number35571
Interp StatusApproved
Final Accepted Text0000266:0000441
Summary0000266: time -p output
Description Historic implementations of the time utility (whether implemented
 as a stand-alone utility or as a shell reserved word [see also my
 aardvark with reference number "dwc: time(keyword)"]) output an
 empty line to stderr to separate error output from the invoked
 utility from the timing statistics written by time itself. The
 wording for the output produced by time without the -p option is
 loose enough to allow this behavior, but the format specified in
 the STDERR section of the description of the time utility (XCU
 P917, L35571-35572) disallows this empty line when -p is used.

 Many existing shells treat this in various ways:
 ksh88 and zsh give an error (-p not recognized)

 ksh93 uses a stand-alone time utility if the 1st argument of
 the command starts with '-'

 Most stand-alone utilities print an empty line before printing
 the output specified in the standard (whether or not -p is
 specified).

 bash prints an empty line if -p is not specified, but matches
 the standard if -p is specified.
Desired ActionDo one of the following:
 1. Insert a '\n' before ``real %f'' in the format string on P917,
     L33571, or
 2. Insert the following new sentence:
         ``The implementation may also prepend a single
           empty line before the format shown here.''
     at the end of the paragraph on P917, L35578.
Tagstc1-2008

Activities

geoffclare

2010-06-25 16:14

manager   bugnote:0000436

Copied from xcubug2.txt ERN 184

geoffclare

2010-06-26 17:46

manager   bugnote:0000441

Interpretation response
------------------------
The standard states the requirements for time -p, 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):
-------------------------------------------------------
Take action 2
 2. Insert the following new sentence:
         ``The implementation may also prepend a single
           empty line before the format shown here.''
     at the end of the paragraph on P917, L35578.

(Target for TC1)

ajosey

2010-07-30 08:18

manager   bugnote:0000492

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

Issue History

Date Modified Username Field Change
2010-06-25 16:14 geoffclare New Issue
2010-06-25 16:14 geoffclare Status New => Under Review
2010-06-25 16:14 geoffclare Assigned To => ajosey
2010-06-25 16:14 geoffclare Name => Don Cragun
2010-06-25 16:14 geoffclare Section => time
2010-06-25 16:14 geoffclare Page Number => 917
2010-06-25 16:14 geoffclare Line Number => 35571
2010-06-25 16:14 geoffclare Interp Status => ---
2010-06-25 16:14 geoffclare Note Added: 0000436
2010-06-25 16:16 geoffclare Reporter geoffclare => Don Cragun
2010-06-26 17:46 geoffclare Note Added: 0000441
2010-06-26 17:47 geoffclare Interp Status --- => Pending
2010-06-26 17:47 geoffclare Final Accepted Text => 0000266:0000441
2010-06-26 17:47 geoffclare Status Under Review => Interpretation Required
2010-06-26 17:47 geoffclare Resolution Open => Accepted As Marked
2010-07-30 08:18 ajosey Interp Status Pending => Proposed
2010-07-30 08:18 ajosey Note Added: 0000492
2010-09-03 16:38 ajosey Interp Status Proposed => Approved
2010-09-03 20:48 Don Cragun Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Interpretation Required => Closed