Hi all,

Given the ksh93 table Tab1 in the compound var V below

V=(  Tab1=(
       [rowA]=(
           Desc='Thing 1'
           Color='red'
       )
       [rowB]=(
           Desc='Thing 2'
           Color='blue'
       )
   )
)


How do I get a list of the indices, that is, 'rowA' and 'rowB'
so that I can iterate through the table?
I have unsuccessfully tried
   ${!V.Tab1.[*]}
   ${!v.tab...@]}
   ${!V.Tab1[*]}
   ${!v.ta...@]}

The only thing that comes close is
   ${!V.Tab1.*}
but that gives me

V.Tab1.rowA
V.Tab2.rowA.Desc
V.Tab2.rowA.Color
V.Tab2.rowB
V.Tab2.rowB.Desc
V.Tab2.rowB.Color

which is not what I want.
I could filter it, but that's really cheesy.
I know David must have provided a method...right, David? :-)

Regards,
   Mario
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to