Want to have an array in ksh
$set -A a1 v1 v2
Everything seems fine.
I wrote it to a script like s.ksh,
set -A a1 v1 v2
If I ran it, I got the error.
s.ksh: line 2: set: -A: invalid option
set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
Can any gurus shed some light on it? How to fix it?