*Synopsis*: ksh93 *time* built-in without -p option doesn't send output to 
stderr

This CR has had a change of priority to or from a high value.

CR 6718647 changed on Oct 22 2008 by <User 1-5Q-5151>

=== Field ============ === New Value ============= === Old Value =============

Priority               3-Medium                    2-High                     
====================== =========================== ===========================


*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: 3-Accepted
  Substatus: 
  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>


=== *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>


=== *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 ======================================



Reply via email to