I probably should know this, but is there a way to
make a copy of array A to array B without writing a loop construct?

I have tried initializing B[0]=
and then doing
B=${A}
or
B=${A[*])

but I'm not getting the desired results.
If each element of A is a single word, then
set -A B  ${A[*]}

works, but that's rather limited.

At the moment I just want to copy a simple numeric indexed array
but I'd also like to know how to do an associative array, too.

Regards,
 Mario
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to