Mario DeFazio schrieb:
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...@]}

Hm, ${!V.Tab1[*]} works for me:

   $ print ${!V.Tab1[*]}
   rowA rowB

Which version are you using? Mine is 93t+ 2009-05-01

Regards,
Bernd

--
Bernd Eggink
http://sudrala.de
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to