I am writing a script to work both in bash and ksh. I have the following code
if [ -e /bin/ksh ]; then
set -A arrayexample a b c
else
arrayexample=('a' 'b' 'c')
fi
I have the following error message when I run it in ksh:
Syntax error at line 4:
(' is not expected`