Oct 3, 2012 #1 ogniemi Technical User Joined Nov 7, 2003 Messages 1,041 Location PL Hello, I am looking for equivalent in ksk88 Code: $ ksh93 $ Version M-12/28/93e $ d=(a=1 b=2 c=3) $ print ${d.c} 3 $ in ksh88 it doesn't work in that way: Code: $ Version M-11/16/88f $ d=(a=1 b=2 c=3) ksh: 0403-057 Syntax error: `(' is not expected.
Hello, I am looking for equivalent in ksk88 Code: $ ksh93 $ Version M-12/28/93e $ d=(a=1 b=2 c=3) $ print ${d.c} 3 $ in ksh88 it doesn't work in that way: Code: $ Version M-11/16/88f $ d=(a=1 b=2 c=3) ksh: 0403-057 Syntax error: `(' is not expected.
Oct 3, 2012 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR There is NO associative array in ksh88, sorry. Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Oct 3, 2012 #3 w5000 Technical User Joined Nov 24, 2010 Messages 223 Location PL interesting... may I have another question if example above could be used in for loop? I have checked but it produces an error: Code: $ d=(a=1 b=2 c=3) $ echo ${d.b} 2 $ for i in a b c;do print ${d.[red]$i[/red]};done ksh93: syntax error: `.' unexpected. Upvote 0 Downvote
interesting... may I have another question if example above could be used in for loop? I have checked but it produces an error: Code: $ d=(a=1 b=2 c=3) $ echo ${d.b} 2 $ for i in a b c;do print ${d.[red]$i[/red]};done ksh93: syntax error: `.' unexpected.