Accessing Associative Arrays in GNU Parallel
Assume the following in Bash: declare -A ar='([one]="1" [two]="2" )' declare -a ari='([0]="one" [1]="two")' for i in ${!ari[@]}; do echo $i ${ari[i]} ${ar[${ari[i]}]} done 0 one 1 1 two 2 Can the same be done with GNU Parallel, making sure to use the index of the associative array, not the sequence? Does the fact that arrays can't be exported make this difficult, if not impossible? A lot has happened in 4 years. GNU Parallel 20190222 comes with env_parallel . This is a shell function that makes it possible to export the most of the environment to the commands run by GNU Parallel. It is