Copying a Bash array fails May 15, 2023 by Tarik If you want to copy a variable that holds an array to another name, you do it like this: a=('a' 'b' 'c') b=( "${a[@]}" )