*Synopsis*: ksh93 *time* built-in without -p option doesn't send output to
stderr
CR 6718647 changed on Aug 13 2009 by <User 1-1SURPB>
=== Field ============ === New Value ============= === Old Value =============
Status 4-Defer 3-Accepted
SubStatus Future Project
====================== =========================== ===========================
*Change Request ID*: 6718647
*Synopsis*: ksh93 *time* built-in without -p option doesn't send output to
stderr
Product: solaris
Category: shell
Subcategory: korn93
Type: Defect
Subtype: Functionality
Status: 4-Defer
Substatus: Future Project
Priority: 3-Medium
Introduced In Release:
Introduced In Build:
Responsible Engineer:
Keywords:
=== *Description* ============================================================
According to the POSIX standards, the timing statistics written by time are
required to be written to stderr whether or not the -p option is specified
on the command line. The current implementation only uses stderr when -p
is specified.
In addition to the output going to the wrong file descriptor note that the
current output without -p is similar to:
$ time ls > 1
real 0m0.01s
user 0m0.00s
sys 0m0.00s
$
The current output with -p is similar to:
$ time -p ls > 1
real 0.01
user 0.00
sys 0.00
$
The empty line written before the timing statistics is also a bug.
Note also that the time fields in the output without -p are aligned,
but they are not aligned in the -p output. The standards allow the
output to be aligned in both cases.
*** (#1 of 1): 2008-06-24 19:31:45 GMT+00:00 <User 1-5Q-8472>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
=== *Additional Details* =====================================================
Targeted Release:
Commit To Fix In Build:
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also:
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3: no-NAS
Hook4:
Hook5:
Hook6:
Program Management:
Root Cause:
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2008-06-24 19:31:45 GMT+00:00
Submitted By: <User 1-5Q-8472>
Status Changed Date Updated Updated By
3-Accepted 2008-06-26 19:13:05 GMT+00:00 <User 1-5Q-5151>
4-Defer 2009-08-13 08:53:48 GMT+00:00 <User 1-1SURPB>
=== *Service Request* ========================================================
Impact: Significant
Functionality: Secondary
Severity: 3
Product Name: solaris
Product Release: solaris_nevada
Product Build:
Operating System: snv_92
Hardware: generic
Submitted Date: 2008-06-24 19:31:46 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================