Possible Duplicate:
How to define hash tables in bash?
Perl hash equivalent in bash ? Please let me know.
Following code is working perfectly in korn shell, however not in bash [3.2 version], getting error for typeset.
#!/bin/ksh 
typeset -A newmap 
name="mandar"
id="111515" 
newmap["name"]=$name
newmap["id"]=$id 
echo "${newmap["id"]}"
 
     
    