set -A is the Korn Shell (ksh) specification (not available in Bash or POSIX SH), and it initializes an array with the specified values.
Here is an example:
$ set -A COLORS "red" "green" "blue"
$ print ${COLORS[0]}
red
$ print ${COLORS[1]}
green
$ print ${COLORS[2]}
blue
In your example, ${FILES[0]}set to $XMLOUTFILE.
Instead of using, set -Ayou can also use, for example ARRAY[0]="value", which is more portable.
source
share