Does pdksh (public domain korn shell) support associative arrays?

Posted by George Jempty on Stack Overflow See other posts from Stack Overflow or by George Jempty
Published on 2008-12-04T21:29:14Z Indexed on 2010/04/25 6:03 UTC
Read the original article Hit count: 336

Filed under:
|
|
|
|

I recently ran up against a wall doing some bash shell programming where an associative array would have solved my problems. I googled about features of the Korn shell and learned that it supports associative arrays, so I installed Cygwin's pdksh (public domain korn shell).

However, when trying to create an associative array in the prescribed manner (typeset -A varName), I received the following errors, so I'm beginning to suspect pdksh does not support associative arrays.

./find_actions.ksh: line 2: typeset: -A: invalid option typeset: usage: typeset [-afFirtx] [-p] name[=value] ...

Guess I'll be considering Perl instead, but I really wanted a good excuse to learn a dialect/language new to me

© Stack Overflow or respective owner

Related posts about ksh

Related posts about shell