I was using associative arrays in my script, hence I used to declare them by the
typeset -A
command, and it worked fine in the bash prompt
But when I use it in my script, I get the following error
`
typeset: -A: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...`
An alternative solution will also be acceptable for me.
SIDENOTE: I tried typeset -a but it declares an indexed array. But I want an associative array.
Asked by Munai Das Udasin
(649 rep)
Aug 13, 2014, 08:11 AM
Last activity: Nov 27, 2024, 10:01 PM
Last activity: Nov 27, 2024, 10:01 PM