AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only

Array of compound variable does not work in ksh93

  • 1.  Array of compound variable does not work in ksh93

    Posted 06/29/10 10:26 PM

    Originally posted by: drgiggle


    Hi:
    This ksh93 code snippet works on OpenSolaris, but not on AIX 5.3:

    #!/bin/ksh93

    x[0]=( x=a y=b )
    print -r -- ${x[0].x}

    On OpenSolaris, it yields the desired result of a. While on AIX, it fails with this error:
    syntax error at line 3: `(' unexpected

    Is this a known bug? If so, is there a patch for this?

    Thanks in advance,
    Keith
    #AIX-Forum