IBM Support

IV55193: KSH93 SET COMMAND INCORRECTLY OUTPUTS AN ASSOCIATIVE ARRAY APPLIES TO AIX 7100-03

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ksh93 set command incorrectly outputs an associative
    array
    
    # ksh93
    # print "${.sh.version}"
    Version M 93t+ 2009-05-01
    # typeset -A foo
    # typeset -A foo[bar]
    # typeset -A foo[baz]
    # foo[bar][cat]=1
    # foo[bar][dog]=2
    # foo[baz][mouse]=3
    # foo[baz][fish]=4
    # print "${!foo[bar][@]}"
    cat dog
    # print "${foo[bar][@]}"
    1 2
    # print "${!foo[baz][@]}"
    0 fish mouse
    # print "${foo[baz][@]}"
     4 3
    # set | fgrep foo
    foo=([bar]=([cat]=1 [dog]=2) [baz]=([0]='' [fish]=4
    [mouse]=3) )
    # print "${foo[@]}"
    foo=([baz]=([0]='' [fish]=4 [mouse]=3) )
    
    The output of the last set command does not display
    associate array contents correctly.
    The actual content, however, is still valid.
    This is only an output issue.
    

Local fix

Problem summary

  • In AIX 7.1 ksh93 'set' command might sometime prints
    a multi-dimensional associative array incompletely.
    

Problem conclusion

  • Code changes are done to ensure that 'set' command
    prints the  complete associative array properly.
    

Temporary fix

Comments

  • 7100-03 - use AIX APAR IV55193
    7100-04 - use AIX APAR IV55344
    

APAR Information

  • APAR number

    IV55193

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-02-07

  • Closed date

    2014-02-07

  • Last modified date

    2016-05-10

  • APAR is sysrouted FROM one or more of the following:

    IV50073

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U859733

       UP14/05/22 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11R","label":"AIX 7.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
10 May 2016