*Synopsis*: Indexed compound variable arrays do not work...

CR 6805799 changed on Oct 23 2009 by <User 1-7MTUEB>

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

See Also               6437624                                                
====================== =========================== ===========================

     
*Change Request ID*: 6805799

*Synopsis*: Indexed compound variable arrays do not work...

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 7-Fix in Progress
  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
   shell
Sub-Category
   korn
Description
   Below is a testcase which shows that trying to use an indexed array of 
compound variables do not work:
-- snip --
typeset -C -a mica01 # myindexedcompoundarray
function add_compound_element
{
nameref left_op=$1
typeset -C more_content=(
some_stuff="hello"
)
left_op+=more_content
return 0
}
mica01[4]=( a_string="foo bar" )
add_compound_element "mica01[4]"
print -r -- "${mica01[4].some_stuff}"
exit 0
-- snip --
The testcase should print "hello" but does currently print nothing, not even 
the "( )" as indicator of an empty compound variable... ;-(
Frequency
   Always
Regression
   No
Steps to Reproduce
   Run testcase.
Expected Result
   The testcase should print "hello".
Actual Result
   The testcase prints nothing.
Error Message(s)
   None.
Test Case
   -- snip --
typeset -C -a mica01 # myindexedcompoundarray
function add_compound_element
{
nameref left_op=$1
typeset -C more_content=(
some_stuff="hello"
)
left_op+=more_content
return 0
}
mica01[4]=( a_string="foo bar" )
add_compound_element "mica01[4]"
print -r -- "${mica01[4].some_stuff}"
exit 0
-- snip --
Workaround
   None.
Additional configuration information
   Solaris 11/B106

*** (#1 of 1): 2009-02-16 03:29:58 GMT+00:00 <User 1-F4SZV>


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

=== *Workaround* =============================================================

=== *Additional Details* =====================================================
        Targeted Release: solaris_nevada
        Commit To Fix In Build: snv_127
        Fixed In Build: 
        Integrated In Build: 
        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-02-16 03:29:57 GMT+00:00
        Submitted By: <User 1-F4SZV>

        Status Changed    Date Updated                  Updated By
        3-Accepted        2009-02-24 14:03:16 GMT+00:00 <User 1-1SURPB>
        6-Fix Understood  2009-06-16 15:25:04 GMT+00:00 <User 1-1SURPB>
        7-Fix in Progress 2009-10-23 18:17:34 GMT+00:00 <User 1-7MTUEB>


=== *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-02-16 03:29:58 GMT+00:00


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

Reply via email to