*Synopsis*: ksh93 "cat" builtin does not handle "-n" correctly

CR 6835835 changed on Nov 23 2009 by <User 1-2S67RN>

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

Integrated in Build    snv_128                                                
Status                 10-Fix Delivered            8-Fix Available            
====================== =========================== ===========================

     
*Change Request ID*: 6835835

*Synopsis*: ksh93 "cat" builtin does not handle "-n" correctly

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 10-Fix Delivered
  Substatus: 
  Priority: 3-Medium
  Introduced In Release: solaris_nevada
  Introduced In Build: snv_72
  Responsible Engineer: <User 1-7MTUEB>
  Keywords: opensolaris, oss-request, oss-sponsor

=== *Description* ============================================================
Category
   solaris/shell (Solaris Utilities/Commands)
Sub-Category
   korn93
Description
   [Originally reported in 
http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2009-February/007050.html
 by Casper Dik]
-- snip --
I just noticed this in ksh93:
 ksh93 -c 'yes "" | head -5|cat -n'
     1
     2
     3
     4
(I used this for older shells when I want to a list of all integers from 1
to a particular number)
-- snip --
Frequency
   Always
Regression
   No
Steps to Reproduce
   Execute $ ksh93 -c 'yes "" | head -5|cat -n' #
Expected Result
   1
2
3
4
5
Actual Result
        1
     2
     3
     4
Error Message(s)
   None.
Test Case
   See dscription.
Workaround
   Disable ksh93's builtin "cat" command either via using an absolute path to 
the "cat" command (POSIX-style workaround) or using ksh93's "builtin" command 
to remove "cat" from the list of builtin commands (e.g. $ builtin -d /bin/cat 
/usr/bin/cat #).
Additional configuration information
   Solaris 11/B106

*** (#1 of 1): 2009-04-30 01:33:56 GMT+00:00 <User 1-F4SZV>


=== *Public Comments* ========================================================

=== *Workaround* =============================================================
Disable ksh93's builtin "cat" command either via using an absolute path to the 
"cat" command (POSIX-style workaround) or using ksh93's "builtin" command to 
remove "cat" from the list of builtin commands (e.g. $ builtin -d /bin/cat 
/usr/bin/cat #).

*** (#1 of 1): 2009-04-30 01:45:48 GMT+00:00 <User 1-5Q-1267>


=== *Additional Details* =====================================================
        Targeted Release: solaris_nevada
        Commit To Fix In Build: snv_128
        Fixed In Build: snv_128
        Integrated In Build: snv_128
        Verified In Build: 
  See Also: 6437624, 6793763
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: 
        Hook4: 
        Hook5: <email address omitted>
        Hook6: <email address omitted>
  Program Management: 
  Root Cause: Insufficient Testing
  Fix Affects Documentation: No
  Fix Affects Localization: No

=== *History* ================================================================
        Date Submitted: 2009-04-30 01:33:55 GMT+00:00
        Submitted By: <User 1-F4SZV>

        Status Changed    Date Updated                  Updated By
        3-Accepted        2009-04-30 10:34:57 GMT+00:00 <User 1-5Q-4088>
        6-Fix Understood  2009-06-17 12:38:13 GMT+00:00 <User 1-1SURPB>
        7-Fix in Progress 2009-10-23 18:34:52 GMT+00:00 <User 1-7MTUEB>
        8-Fix Available   2009-10-28 18:23:37 GMT+00:00 <User 1-5HNZ8F>
        10-Fix Delivered  2009-11-23 05:17:07 GMT+00:00 <User 1-2S67RN>


=== *Service Request* ========================================================
        Impact: Significant
        Functionality: Secondary
        Severity: 3
        Product Name: solaris
        Product Release: solaris_nevada
        Product Build: snv_106
        Operating System: solaris_nevada
        Hardware: generic
        Submitted Date: 2009-04-30 01:33:56 GMT+00:00


=== *Multiple Release (MR) Cluster* - 0 ======================================

Reply via email to