New comment by tranzystorek-io on void-packages repository https://github.com/void-linux/void-packages/pull/42656#issuecomment-1459937395 Comment: > > I haven't checked if there's any convenient mechanism for concatenating arrays > > for the same array, just `foo+=(new_element)`, for different: > > ```shell > $ foo=(foo bar baz) > $ bar=("${foo[@]}" idk) > $ declare -p foo > declare -a foo=([0]="foo" [1]="bar" [2]="baz") > $ declare -p bar > declare -a bar=([0]="foo" [1]="bar" [2]="baz" [3]="idk") > ``` Hm, for me the added explicitness of `"${foo[@]}"` is a plus, but probably not everyone would agree.