Bash: Export array doesn't work
Bash doesn't allow you to export array variables:
$ declare -ax var1=( foo ) $ declare -x var2=bar $ bash -c set | grep var # var1 is missing in `set' subshell var2=bar $
Exporting array variables is not (yet) supported by bash. From
Array variables may not (yet) be exported.
-  How to export array in bash - comp.unix.shell
- Same question asked in newsgroups. With possible workaround...