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

CR 6835835 changed on Apr 30 2009 by <User 1-5Q-1267>

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

Category               shell                       opensolaris                
SubCategory            korn93                      triage-queue               
Work Around            New Note                                               
====================== =========================== ===========================

     
*Change Request ID*: 6835835

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

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 1-Dispatched
  Substatus: 
  Priority: 3-Medium
  Introduced In Release: 
  Introduced In Build: 
  Responsible Engineer: 
  Keywords: opensolaris

=== *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: 
        Commit To Fix In Build: 
        Fixed In Build: 
        Integrated In Build: 
        Verified In Build: 
  See Also: 6793763
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: 
        Hook4: 
        Hook5: 
        Hook6: <email address omitted>
  Program Management: 
  Root Cause: 
  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


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