bash solution for setting array value
Merge pull request #1201 from szepeviktor/patch-4

bash solution for setting array value